Commit Graph

13 Commits

Author SHA1 Message Date
pxlvxl 012f96ae8d push2 2022-02-25 09:49:30 -05:00
pxlvxl f499662afc Various changes
- added `/:paletteSlug/:resolution` functionality for localhost testing
	- created `currFile.sublayers` for *things that should zoom with the canvas layers*
	- `currFile.layers` now solely contains the canvas layers
	- added `getProjectData` to `FileManager`'s exported methods
	---
	- added `FileManager.localStorageSave` (it's basically just: localStorage.setItem("lpe-cache",FileManager.getProjectData()))
	- added `FileManager.localStorageCheck` (it's basically just: `!!localStorage.getItem("lpe-cache")`)
	- added `FileManager.localStorageLoad` (it's basically just: `return localStorage.getItem("lpe-cache")`)
	- added `FileManager.localStorageReset` (for debugging purity)
	---
	- calling `FileManager.localStorageSave()` on mouse up (we should stress test this)
	---
	- changed lpe file format to `{canvasWidth:number,canvasHeight:number,selectedLayer:number,colors:[],layers:[]}`
	- added backward compatibility for the old lpe file format
	---
	- added some canvas utility functions in `canvas_util`
	- added Unsettled's color similarity utility functions in `color_util2`
	---
	- html boilerplate - wang tiles
	-
	- POC - tiny text boilerplate
	- POC - tiny text font scraper
	---
	- WIP - added two optional url route parameters `/:paletteSlug/:resolution/:prefillWidth/:prefillBinaryStr`
	- WIP POC - hbs_parser.js (outputs tree data about hbs file relationships)
2022-02-23 11:36:15 -05:00
Sam Keddy c135e2838d fixed urls
changed all urls to be relative (no starting slash) and without /pixel-editor/. Fixed the testing server to deal with these requests (and also include some better logging).
2022-01-13 14:40:35 -05:00
skeddles 1f820fd97e ported to static site, removed _ext folder, split hbs files into partials 2021-07-06 17:24:20 -04:00
nkoder 7e40df507e Make it possible to run server with file-watching but without automatic webpage reload 2021-04-28 23:51:14 +02:00
nkoder ac32f42318 Show landing page instead of 404 on editor page reload 2021-04-28 23:33:53 +02:00
unsettledgames 079ea38e63 Added random splash images
Also added a rough class scheme of the editor for future use.
2021-04-27 11:00:27 +02:00
Julian Webb ea357dab04
Merge branch 'master' into hot-reload 2021-04-26 11:04:47 -07:00
Julian Webb 2771508561 Readded page open and added auto-refresh
Added npm modules 'open-cli', 'concurrently', 'reload', and 'wait-cli'
NPM script 'hot' will now open the page once the server is up the first time thanks to 'wait-cli' and 'open-cli'
After that, 'reload' will take care of refresing the page when it's dead-man switch triggers

Co-authored-by: ndoker <pawelbarszcz@gmail.com>
2021-04-25 13:03:55 -07:00
Julian Webb ecae10e1ec Removed 'open' dependancy and added 'nodemon' dependacy. Also added a 'hot' script to 'package.json' for hot-reloads 2021-04-25 10:19:01 -07:00
Leamsi Escribano 5ea861b764 fixing dev env issues 2021-01-13 14:21:43 -05:00
Theo Cavignac 24af6b38a3 Update opn into open, make all build steps gulp based 2020-04-12 10:58:23 +02:00
Theo Cavignac 4123c069e2 Enforce style, split build into build and server, parametrize build.js and server.js 2020-04-12 09:36:10 +02:00