diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index a8dfa3e..0000000 --- a/.editorconfig +++ /dev/null @@ -1,6 +0,0 @@ -[*] -charset = utf-8 -insert_final_newline = true -end_of_line = lf -indent_style = space -indent_size = 4 diff --git a/.eslintrc.json b/.eslintrc.json index bd3e3f3..695c05d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -105,17 +105,6 @@ { "prevent": true } - ], - "react/jsx-sort-props": [ - "error", - { - "callbacksLast": true, - "shorthandFirst": true, - "shorthandLast": false, - "ignoreCase": true, - "noSortAlphabetically": false, - "reservedFirst": true - } ] } } diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 3fdf856..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "typescript.tsdk": "node_modules\\typescript\\lib", - "typescript.preferences.importModuleSpecifier": "relative", - "typescript.preferences.quoteStyle": "single", - "typescript.format.placeOpenBraceOnNewLineForControlBlocks": true, - "typescript.format.placeOpenBraceOnNewLineForFunctions": true, - "editor.wordWrap": "on", - "editor.codeActionsOnSave": { - "source.fixAll.eslint": true, - "source.fixAll.sortJSON": false, - "source.organizeImports": true - }, - "editor.formatOnSave": false, - "git.ignoreLimitWarning": true, - "files.eol": "\n", - "files.insertFinalNewline": true, - "files.trimFinalNewlines": true, - "emmet.showExpandedAbbreviation": "never", - "eslint.format.enable": true, - "eslint.validate": [ - "javascript", - "typescript" - ], - "eslint.workingDirectories": [ - { - "pattern": "./src" - } - ], - "javascript.format.enable": false, - "thunder-client.saveToWorkspace": false, - "thunder-client.workspaceRelativePath": "." -} diff --git a/README.md b/README.md index 0942f4e..7b6ffc1 100644 --- a/README.md +++ b/README.md @@ -24,12 +24,6 @@ - Open `public/ui-config.json` - Update `camera.url, thumbnails.url, url.prefix, habbopages.url` - You can override any variable by passing it to `NitroConfig` in the index.html - - nitro-renderer>yarn install - \nitro-renderer>yarn link - \nitro-react>yarn install - yarn link "@nitrots/nitro-renderer" - yarn start ## Usage diff --git a/css-utils/CSSColorUtils.js b/css-utils/CSSColorUtils.js deleted file mode 100644 index 66bb248..0000000 --- a/css-utils/CSSColorUtils.js +++ /dev/null @@ -1,49 +0,0 @@ -const lightenHexColor = (hex, percent) => -{ -// Remove the hash symbol if present - hex = hex.replace(/^#/, ''); - - // Convert hex to RGB - let r = parseInt(hex.substring(0, 2), 16); - let g = parseInt(hex.substring(2, 4), 16); - let b = parseInt(hex.substring(4, 6), 16); - - // Adjust RGB values - r = Math.round(Math.min(255, r + 255 * percent)); - g = Math.round(Math.min(255, g + 255 * percent)); - b = Math.round(Math.min(255, b + 255 * percent)); - - // Convert RGB back to hex - const result = ((r << 16) | (g << 8) | b).toString(16); - - // Make sure result has 6 digits - return '#' + result.padStart(6, '0'); -} - -const generateShades = (colors) => -{ - for (let color in colors) - { - let hex = colors[color] - let extended = {} - const shades = [ 50, 100, 200, 300, 400, 500, 600, 700, 900, 950 ]; - - for (let i = 0; i < shades.length; i++) - { - let shade = shades[i]; - extended[shade] = lightenHexColor(hex, shades[(shades.length - 1 - i) ] / 1000); - } - - colors[color] = { - DEFAULT: hex, - ...extended - } - } - - return colors; -} - -module.exports = { - generateShades, - lightenHexColor -} diff --git a/index.html b/index.html index 18b1a79..544fa62 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@ - + Nitro @@ -23,7 +23,7 @@