From df5aef363b3e9ae942fbf1a284c1091cee68c29a Mon Sep 17 00:00:00 2001 From: jdescottes Date: Sun, 21 Dec 2014 16:44:10 +0100 Subject: [PATCH] Move to imgstore-b, change body bg --- src/css/style.css | 6 +---- src/js/Constants.js | 31 +++++------------------ src/js/service/AppEngineStorageService.js | 2 +- 3 files changed, 8 insertions(+), 31 deletions(-) diff --git a/src/css/style.css b/src/css/style.css index d1aa309d..37b0da2e 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -1,9 +1,5 @@ body { - background: radial-gradient(circle, #000, #373737); - /* 16/06/2013 : -webkit still needed for - safari, safari mobile and android browser and chrome for android - cf http://caniuse.com/css-gradients */ - background: -webkit-radial-gradient(circle, #000, #373737); + background: #1D1D1D; } /* Browser fixes */ diff --git a/src/js/Constants.js b/src/js/Constants.js index 0ce59ab4..d8480e79 100644 --- a/src/js/Constants.js +++ b/src/js/Constants.js @@ -21,16 +21,8 @@ var Constants = { DEFAULT_PEN_COLOR : '#000000', TRANSPARENT_COLOR : 'rgba(0, 0, 0, 0)', - OVERLAY_ONION_SKIN : 'onion-skin', - OVERLAY_LAYER_PREVIEW : 'layer-preview', - OVERLAY_DISABLED : 'no-overlay', - - NO_PALETTE_ID : '__no-palette', CURRENT_COLORS_PALETTE_ID : '__current-colors', - // Used for Spectrum input - PREFERRED_COLOR_FORMAT : 'rgb', - /* * Fake semi-transparent color used to highlight transparent * strokes and rectangles: @@ -43,22 +35,6 @@ var Constants = { */ TOOL_TARGET_HIGHLIGHT_COLOR: 'rgba(255, 255, 255, 0.2)', - /* - * Default entry point for piskel web service: - */ - STATIC : { - URL : { - SAVE : 'http://3.piskel-app.appspot.com/store', - GET : 'http://3.piskel-app.appspot.com/get' - } - }, - APPENGINE : { - URL : { - SAVE : 'save' - } - }, - IMAGE_SERVICE_UPLOAD_URL : 'http://piskel-imgstore-a.appspot.com/__/upload', - IMAGE_SERVICE_GET_URL : 'http://piskel-imgstore-a.appspot.com/img/', ZOOMED_OUT_BACKGROUND_COLOR : '#A0A0A0', @@ -71,5 +47,10 @@ var Constants = { EMPTY_FUNCTION : function () {}, // TESTS - DRAWING_TEST_FOLDER : 'drawing' + DRAWING_TEST_FOLDER : 'drawing', + + // SERVICE URLS + APPENGINE_SAVE_URL : 'save', + IMAGE_SERVICE_UPLOAD_URL : 'http://piskel-imgstore-b.appspot.com/__/upload', + IMAGE_SERVICE_GET_URL : 'http://piskel-imgstore-b.appspot.com/img/' }; \ No newline at end of file diff --git a/src/js/service/AppEngineStorageService.js b/src/js/service/AppEngineStorageService.js index 4d377139..4e51c08e 100644 --- a/src/js/service/AppEngineStorageService.js +++ b/src/js/service/AppEngineStorageService.js @@ -35,6 +35,6 @@ callbacks.after(); }; - pskl.utils.Xhr.post(Constants.APPENGINE.URL.SAVE, data, success, error); + pskl.utils.Xhr.post(Constants.APPENGINE_SAVE_URL, data, success, error); }; })(); \ No newline at end of file