diff options
| author | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
| commit | bb511abc03bb66848947e37a999502b813c77269 (patch) | |
| tree | 612c010fc8317e1cdf11471a18aad0270819d33e /spike | |
| parent | fix: if clear amount equal or over 100, round down to 99 (diff) | |
| download | dep-core-bb511abc03bb66848947e37a999502b813c77269.tar.xz dep-core-bb511abc03bb66848947e37a999502b813c77269.zip | |
goodbye old uwufier :cry:
Diffstat (limited to 'spike')
| -rw-r--r-- | spike/Procfile | 1 | ||||
| -rw-r--r-- | spike/package.json.scripts | 13 | ||||
| -rw-r--r-- | spike/tsconfig.json.dev | 70 | ||||
| -rw-r--r-- | spike/ws/css/main.css | 116 | ||||
| -rw-r--r-- | spike/ws/favicon.ico | bin | 19125 -> 0 bytes | |||
| -rw-r--r-- | spike/ws/layouts/layout.hbs | 1 | ||||
| -rw-r--r-- | spike/ws/views/index.hbs | 1 |
7 files changed, 84 insertions, 118 deletions
diff --git a/spike/Procfile b/spike/Procfile new file mode 100644 index 0000000..3ac3b3b --- /dev/null +++ b/spike/Procfile @@ -0,0 +1 @@ +worker: node ./dist/app.js diff --git a/spike/package.json.scripts b/spike/package.json.scripts new file mode 100644 index 0000000..dc57768 --- /dev/null +++ b/spike/package.json.scripts @@ -0,0 +1,13 @@ + "scripts": { + "build": "tsc -p tsconfig.json && npm run copy:all", + "start": "npm run start:prod", + "start:debug": "supervisor ./dist/app.js", + "start:prod": "node dist/app.js", + "copy:assets": "cpx './src/assets/**/**/*' './dist/assets'", + "copy:cache": "cpx './src/Cache/*' './dist/Cache'", + "copy:all": "concurrently \"npm:copy:assets\" \"npm:copy:cache\"" + }, + + "copy:assets": "cp -r 'src/assets/' 'dist/'", + "copy:ws": "cp -r 'src/ws/' 'dist/'", + "copy": "concurrently \"npm:copy:assets\" \"npm:copy:ws\"",
\ No newline at end of file diff --git a/spike/tsconfig.json.dev b/spike/tsconfig.json.dev new file mode 100644 index 0000000..a408deb --- /dev/null +++ b/spike/tsconfig.json.dev @@ -0,0 +1,70 @@ +{ + "compilerOptions": { + /* Basic Options */ + // "incremental": true, /* Enable incremental compilation */ + "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ + // "lib": [], /* Specify library files to be included in the compilation. */ + "allowJs": true, /* Allow javascript files to be compiled. */ + "checkJs": true, /* Report errors in .js files. */ + // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ + // "declaration": true, /* Generates corresponding '.d.ts' file. */ + // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + // "sourceMap": true, /* Generates corresponding '.map' file. */ + // "outFile": "./", /* Concatenate and emit output to single file. */ + "outDir": "dist", /* Redirect output structure to the directory. */ + // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ + // "composite": true, /* Enable project compilation */ + // "tsBuildInfoFile": "./build", /* Specify file to store incremental compilation information */ + "removeComments": true, /* Do not emit comments to output. */ + // "noEmit": true, /* Do not emit outputs. */ + // "importHelpers": true, /* Import emit helpers from 'tslib'. */ + // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ + // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ + + /* Strict Type-Checking Options */ + "strict": true, /* Enable all strict type-checking options. */ + "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ + "strictNullChecks": true, /* Enable strict null checks. */ + // "strictFunctionTypes": true, /* Enable strict checking of function types. */ + // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ + // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ + "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ + // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ + + /* Additional Checks */ + // "noUnusedLocals": true, /* Report errors on unused locals. */ + // "noUnusedParameters": true, /* Report errors on unused parameters. */ + "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ + "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ + + /* Module Resolution Options */ + // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ + // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ + // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ + // "typeRoots": [], /* List of folders to include type definitions from. */ + // "types": [], /* Type declaration files to be included in compilation. */ + // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ + "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ + + /* Source Map Options */ + // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ + // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ + + /* Experimental Options */ + "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ + // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ + + /* Advanced Options */ + "resolveJsonModule": true, /* Include modules imported with '.json' extension */ + "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ + }, + "include": [ + "./src/**/*" + ] +} diff --git a/spike/ws/css/main.css b/spike/ws/css/main.css deleted file mode 100644 index 993c46a..0000000 --- a/spike/ws/css/main.css +++ /dev/null @@ -1,116 +0,0 @@ -@import url('https://fonts.googleapis.com/css?family=Fira+Mono:400'); - -body { - display: flex; - width: 100vw; - height: 100vh; - align-items: center; - justify-content: center; - margin: 0; - background: #131313; - color: #fff; - font-size: 96px; - font-family: 'Fira Mono', monospace; - letter-spacing: -7px; -} - -div { - animation: glitch 1s linear infinite; -} - -@keyframes glitch { - - 2%, - 64% { - transform: translate(2px, 0) skew(0deg); - } - - 4%, - 60% { - transform: translate(-2px, 0) skew(0deg); - } - - 62% { - transform: translate(0, 0) skew(5deg); - } -} - -div:before, -div:after { - content: attr(title); - position: absolute; - left: 0; -} - -div:before { - animation: glitchTop 1s linear infinite; - clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); - -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); -} - -@keyframes glitchTop { - - 2%, - 64% { - transform: translate(2px, -2px); - } - - 4%, - 60% { - transform: translate(-2px, 2px); - } - - 62% { - transform: translate(13px, -1px) skew(-13deg); - } -} - -div:after { - animation: glitchBotom 1.5s linear infinite; - clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); - -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); -} - -@keyframes glitchBotom { - - 2%, - 64% { - transform: translate(-2px, 0); - } - - 4%, - 60% { - transform: translate(-2px, 0); - } - - 62% { - transform: translate(-22px, 5px) skew(21deg); - } -} - -#green { - color: #05ffa1 -} - -a { - color: white; - text-decoration: none; - transition: 0.5s; -} - -a:hover { - color: rgb(223, 222, 222); - text-decoration: none; - transition: 0.5s; -} - -.footer { - position: fixed; - left: 0; - bottom: 0; - width: 100%; - color: white; - text-align: center; - font-size: 15px; - letter-spacing: -1px; -}
\ No newline at end of file diff --git a/spike/ws/favicon.ico b/spike/ws/favicon.ico Binary files differdeleted file mode 100644 index 7f426f3..0000000 --- a/spike/ws/favicon.ico +++ /dev/null diff --git a/spike/ws/layouts/layout.hbs b/spike/ws/layouts/layout.hbs deleted file mode 100644 index 7d0785a..0000000 --- a/spike/ws/layouts/layout.hbs +++ /dev/null @@ -1 +0,0 @@ -{{body}}
\ No newline at end of file diff --git a/spike/ws/views/index.hbs b/spike/ws/views/index.hbs deleted file mode 100644 index b815c9b..0000000 --- a/spike/ws/views/index.hbs +++ /dev/null @@ -1 +0,0 @@ -{{response}}
\ No newline at end of file |