Skip to content

Commit

Permalink
⚡ Refurbish project selector and add Examples tab
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Oct 16, 2020
1 parent fb9142b commit 543b1fa
Show file tree
Hide file tree
Showing 48 changed files with 704 additions and 253 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
3rdparty
app/data/typedefs
11 changes: 9 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"root": true,
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"plugins": ["pug"],
"plugins": ["pug", "@typescript-eslint"],
"globals": {
"alertify": true,
"dragonBones": true,
Expand All @@ -16,11 +17,17 @@
"riot": true,
"soundbox": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018
},
"extends": "eslint:recommended",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"accessor-pairs": "error",
"array-bracket-spacing": ["error", "never"],
"array-callback-return": "error",
Expand Down
1 change: 1 addition & 0 deletions app/data/ct.release/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
* @property {number} shakeMax The maximum possible value for the `shake` property
* to protect players from losing their monitor, in `shake` units. Default is 10.
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
class Camera extends PIXI.DisplayObject {
constructor(x, y, w, h) {
super();
Expand Down
4 changes: 3 additions & 1 deletion app/data/i18n/English.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,11 @@
"forgetProject": "Forget this project",
"browse": "Browse",
"latest": "Latest projects",
"examples": "Examples",
"unableToWriteToFolders": "Ct.js could not find an appropriate place for projects! Make sure you store ct.js app inside a folder you have access to write to.",
"twitter": "Twitter channel",
"discord": "Discord community"
"discord": "Discord community",
"createOrBrowseJunction": "or"
},
"licensepanel": {
"ctjslicense": "Ct.js License (MIT)"
Expand Down
193 changes: 190 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
},
"license": "MIT",
"dependencies": {
"@types/node": "^14.11.5",
"@types/node": "^14.11.8",
"@types/nw.js": "^0.13.10",
"@typescript-eslint/eslint-plugin": "^4.4.1",
"@typescript-eslint/parser": "^4.4.1",
"filemode": "^3.0.0",
"fs-extra": "^9.0.1",
"globby": "^11.0.1",
Expand Down
Binary file modified src/examples/DungeonCrawler_tutorial/img/r42846504b06f.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/examples/DungeonCrawler_tutorial/img/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 543b1fa

Please sign in to comment.