diff --git a/.all-contributorsrc b/.all-contributorsrc new file mode 100644 index 0000000..1f349c6 --- /dev/null +++ b/.all-contributorsrc @@ -0,0 +1,27 @@ +{ + "projectName": "ptkdev-boilerplate/svelte-cordova-boilerplate", + "projectOwner": "ptkdev", + "repoType": "github", + "repoHost": "https://github.com", + "files": [ + "README.md" + ], + "imageSize": 100, + "commit": true, + "contributors": [ + { + "login": "ptkdev", + "name": "Patryk Rzucidło", + "avatar_url": "https://avatars1.githubusercontent.com/u/442844?v=4", + "profile": "https://ptk.dev", + "contributions": [ + "code", + "translation", + "doc", + "bug" + ] + } + ], + "contributorsPerLine": 6, + "commitConvention": "none" +} diff --git a/.all-shieldsrc b/.all-shieldsrc new file mode 100644 index 0000000..897eca9 --- /dev/null +++ b/.all-shieldsrc @@ -0,0 +1,335 @@ +{ + "files": [ + "README.md", + "CHANGELOG.md" + ], + "shields": [ + { + "id": "header-badges", + "badges": [ + { + "url": "https://github.com/ptkdev-boilerplate/svelte-cordova-boilerplate/blob/main/CHANGELOG.md", + "color": "lightgray", + "label": "version", + "message": "v{{version}}", + "title": "v{{version}}", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://www.npmjs.com/package/@ptkdev/svelte-cordova-boilerplate", + "color": "#CC3534", + "label": "npm", + "logo": "npm", + "style": "flat", + "custom": "/npm/v/@ptkdev/svelte-cordova-boilerplate?color=CC3534&logo=npm", + "platform": "shields" + }, + { + "url": "https://github.com/ptkdev-boilerplate/svelte-cordova-boilerplate/blob/main/LICENSE.md", + "color": "brightgreen", + "label": "license", + "message": "{{license}}", + "title": "License: {{license}}", + "style": "flat", + "logo": "license", + "platform": "shields" + }, + { + "url": "https://svelte.dev/", + "color": "#FF3C02", + "label": "powered by", + "message": "svelte", + "title": "Powered By Svelte", + "style": "flat", + "logo": "svelte", + "platform": "shields" + }, + { + "url": "https://cordovajs.org/", + "color": "#9feaf9", + "label": "powered by", + "message": "cordova", + "title": "Powered By Cordova", + "style": "flat", + "logo": "cordova", + "platform": "shields" + }, + { + "url": "https://www.typescriptlang.org/", + "color": "blue", + "label": "language", + "message": "typescript", + "title": "Language: TypeScript", + "style": "flat", + "logo": "typescript", + "platform": "shields" + }, + { + "url": "https://github.com/tc39/ecma262", + "color": "#F7DF1E", + "label": "ES", + "message": "9", + "title": "ECMAScript: 2019", + "style": "flat", + "logo": "javascript", + "platform": "shields" + }, + { + "url": "https://discord.ptkdev.io", + "server_id": "383373985666301975", + "title": "Discord Server", + "platform": "discord" + } + ] + }, + { + "id": "sponsors-badges", + "badges": [ + { + "url": "https://www.paypal.me/ptkdev", + "color": "#005EA6", + "label": "donate", + "message": "paypal", + "title": "Donate Paypal", + "style": "flat", + "logo": "paypal", + "platform": "shields" + }, + { + "url": "https://ko-fi.com/ptkdev", + "color": "#29abe0", + "label": "donate", + "message": "ko-fi", + "title": "Donate Ko-Fi", + "style": "flat", + "logo": "ko-fi", + "platform": "shields" + }, + { + "url": "https://github.com/sponsors/ptkdev", + "color": "#ea4aaa", + "label": "donate", + "message": "sponsors", + "title": "Donate Github Sponsors", + "style": "flat", + "logo": "github", + "platform": "shields" + }, + { + "url": "https://www.patreon.com/ptkdev", + "color": "#F87668", + "label": "donate", + "message": "patreon", + "title": "Donate Patreon", + "style": "flat", + "logo": "patreon", + "platform": "shields" + }, + { + "url": "", + "color": "#E38B29", + "label": "donate", + "message": "35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH", + "title": "Donate Bitcoin", + "style": "flat", + "logo": "bitcoin", + "platform": "shields" + }, + { + "url": "", + "color": "#4E8EE9", + "label": "donate", + "message": "0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc", + "title": "Donate Ethereum", + "style": "flat", + "logo": "ethereum", + "platform": "shields" + } + ] + }, + { + "id": "projects-badges1", + "badges": [ + { + "url": "https://ptk.dev/", + "color": "#3498db", + "label": "💻 My", + "message": "Portfolio", + "style": "flat", + "logo": "", + "platform": "shields" + } + ] + }, + { + "id": "projects-badges2", + "badges": [ + { + "url": "https://github.com/ptkdev/ptkdev-logger", + "color": "#9b59b6", + "label": "🦒 Tools", + "message": "Node Logger", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://github.com/ptkdev/all-shields-cli", + "color": "#9b59b6", + "label": "🦌 Tools", + "message": "All Shields CLI", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://github.com/ptkdev/chrome-extension-aspectratio219", + "color": "#9b59b6", + "label": "🖥️ Tools", + "message": "Aspect Ratio 21:9", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://availableon.badge.ptkdev.io/", + "color": "#9b59b6", + "label": "🛡 Tools", + "message": "Badges: Available on", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://github.com/ptkdev/json-token-replace", + "color": "#9b59b6", + "label": "🐾 Tools", + "message": "JSON Token Replace", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://github.com/ptkdev/eslint-plugin-snakecasejs", + "color": "#9b59b6", + "label": "🐍 Tools", + "message": "ESLint: snakecasejs", + "style": "flat", + "logo": "", + "platform": "shields" + } + ] + }, + { + "id": "projects-badges3", + "badges": [ + { + "url": "https://github.com/ptkdev-components/webcomponent-instagram-widget", + "color": "#e74c3c", + "label": "📸 WebComponent", + "message": "Instagram Widget", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://github.com/ptkdev-components/webcomponent-patreon-box", + "color": "#e74c3c", + "label": "👑 WebComponent", + "message": "My Patreon Box", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://github.com/ptkdev-components/webcomponent-carousel-slideshow", + "color": "#e74c3c", + "label": "🏞 WebComponent", + "message": "Carousel Slideshow", + "style": "flat", + "logo": "", + "platform": "shields" + } + ] + }, + { + "id": "projects-badges4", + "badges": [ + { + "url": "https://github.com/ptkdev/vscode-theme-dark-blood", + "color": "#f1c40f", + "label": "🎨 Themes", + "message": "VSCode", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://t.me/gamebookchatbot", + "color": "#34495e", + "label": "📚 Bot", + "message": "GameBookChat", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://github.com/ptkdev-boilerplate?q=svelte", + "color": "#f368e0", + "label": "👔 Boilerplate", + "message": "Svelte", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://github.com/ptkdev-boilerplate?q=webcomponent", + "color": "#f368e0", + "label": "👔 Boilerplate", + "message": "WebComponents", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://github.com/ptkdev-boilerplate?q=bot", + "color": "#f368e0", + "label": "👔 Boilerplate", + "message": "BOT", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://github.com/ptkdev-boilerplate?q=node", + "color": "#f368e0", + "label": "👔 Boilerplate", + "message": "Node", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://meingifs.pics/", + "color": "#2ecc71", + "label": "💅 App", + "message": "Me in Gifs", + "style": "flat", + "logo": "", + "platform": "shields" + }, + { + "url": "https://github.com/ptkdev/ptkdev-stickers#-install-free", + "color": "#2ecc71", + "label": "📱 App", + "message": "Stickers", + "style": "flat", + "logo": "", + "platform": "shields" + } + ] + } + ] +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e08369e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# EditorConfig is awesome: https://EditorConfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = false +trim_trailing_whitespace = true +indent_style = tab +indent_size = 4 + +[*.py] +indent_style = space +indent_size = 4 \ No newline at end of file diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..2ec5a91 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,4 @@ +/dist +/examples +/platforms +/plugins \ No newline at end of file diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..1c01788 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,118 @@ +module.exports = { + "env": { + "es6": true, + "node": true, + "browser": true, + "jest/globals": true + }, + "parser": "@typescript-eslint/parser", + "extends": ["eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended"], + "parserOptions": { + "sourceType": "module", + "ecmaVersion": 2019 + }, + "plugins": ["jsdoc", "jest", "svelte3", "@typescript-eslint"], + "globals": { + "fetch": false + }, + "settings": { + "jsdoc": { + "tagNamePreference": { + "returns": "return" + } + }, + "svelte3/typescript": require("typescript") + }, + "overrides": [ + { + "files": ["**/*.svelte"], + "processor": "svelte3/svelte3" + } + ], + "rules": { + "no-multi-spaces": [ + "error", + { + "ignoreEOLComments": true, + "exceptions": { + "VariableDeclarator": true + } + } + ], + "block-spacing": ["error", "always"], + "array-bracket-spacing": ["error", "never"], + "space-in-parens": ["error", "never"], + "comma-spacing": [ + "error", + { + "before": false, + "after": true + } + ], + "key-spacing": [ + "error", + { + "afterColon": true, + "beforeColon": false + } + ], + "indent": [ + "error", + "tab", + { + "SwitchCase": 1 + } + ], + "quotes": [ + "error", + "double", + { + "avoidEscape": true, + "allowTemplateLiterals": true + } + ], + "semi": ["error", "always"], + "no-console": ["warn"], + "no-constant-condition": ["warn"], + "curly": ["error", "all"], + "brace-style": [ + "error", + "1tbs", + { + "allowSingleLine": false + } + ], + "keyword-spacing": [ + "error", + { + "before": true, + "after": true + } + ], + "object-curly-spacing": ["error", "always"], + "no-mixed-spaces-and-tabs": ["error", "smart-tabs"], + "spaced-comment": [2, "always"], + "space-before-blocks": ["error", "always"], + "space-before-function-paren": "off", + "prefer-template": "error", + "no-useless-concat": "error", + "linebreak-style": ["error", "unix"], + "eol-last": ["error", "always"], + "template-curly-spacing": ["error", "never"], + "no-multiple-empty-lines": "off", + "jest/no-disabled-tests": "warn", + "jest/no-focused-tests": "error", + "jest/no-identical-title": "error", + "jest/prefer-to-have-length": "warn", + "jest/valid-expect": "error", + "jsdoc/require-param": 1, + "jsdoc/require-param-description": 1, + "jsdoc/require-param-name": 1, + "jsdoc/require-param-type": 1, + "jsdoc/require-returns": 1, + "jsdoc/require-returns-description": 1, + "jsdoc/require-returns-type": 1, + "jsdoc/require-returns-check": 1, + "jsdoc/require-hyphen-before-param-description": 1 + } +}; diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..801b030 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,146 @@ +## AUTO-DETECT +* text=auto + +## SOURCE CODE +*.bat text eol=crlf +*.css text eol=lf +*.html text diff=html eol=lf +*.ini text eol=crlf +*.js text eol=lf +*.json text eol=lf +*.php text diff=php eol=lf +*.py text diff=python eol=lf +*.rb text diff=ruby +*.sass text eol=lf +*.scss text eol=lf +*.sh text eol=lf +*.sql text eol=lf +*.ts text eol=lf +*.vue text eol=lf +*.svelte text eol=lf +*.xml text eol=lf +*.xhtml text diff=html eol=lf + +## DOCKER +*.dockerignore text eol=lf +Dockerfile text eol=lf + +## DOCUMENTATION +*.md text eol=lf +*.txt text eol=lf +AUTHORS text eol=lf +CHANGELOG text eol=lf +CHANGES text eol=lf +CONTRIBUTING text eol=lf +COPYING text eol=lf +INSTALL text eol=lf +license text eol=lf +LICENSE text eol=lf +NEWS text eol=lf +README text eol=lf +TODO text eol=lf + +## TEMPLATES +*.dot text eol=lf +*.tpl text eol=lf +*.twig text eol=lf + +## LINTERS +.csslintrc text eol=lf +.eslintrc text eol=lf +.htmlhintrc text eol=lf +.jscsrc text eol=lf +.jshintrc text eol=lf +.jshintignore text eol=lf +.stylelintrc text eol=lf +.npmignore text eol=lf + +## CONFIGS +*.bowerrc text eol=lf +*.cnf text eol=lf +*.conf text eol=lf +*.config text eol=lf +.babelrc text eol=lf +.browserslistrc text eol=lf +.editorconfig text eol=lf +.env text eol=lf +.gitattributes text eol=lf +.gitconfig text eol=lf +.htaccess text eol=lf +*.lock text eol=lf +*.npmignore text eol=lf +*.yaml text eol=lf +*.yml text eol=lf +browserslist text eol=lf +Makefile text eol=lf +makefile text eol=lf + +## GRAPHICS +*.ai binary +*.bmp binary +*.eps binary +*.gif binary +*.ico binary +*.jng binary +*.jp2 binary +*.jpg binary +*.jpeg binary +*.jpx binary +*.jxr binary +*.pdf binary +*.png binary +*.psb binary +*.psd binary +*.svg text +*.svgz binary +*.tif binary +*.tiff binary +*.wbmp binary +*.webp binary + +## AUDIO +*.kar binary +*.m4a binary +*.mid binary +*.midi binary +*.mp3 binary +*.ogg binary +*.ra binary + +## VIDEO +*.3gpp binary +*.3gp binary +*.as binary +*.asf binary +*.asx binary +*.fla binary +*.flv binary +*.m4v binary +*.mng binary +*.mov binary +*.mp4 binary +*.mpeg binary +*.mpg binary +*.ogv binary +*.swc binary +*.swf binary +*.webm binary + +## ARCHIVES +*.7z binary +*.gz binary +*.jar binary +*.rar binary +*.tar binary +*.zip binary + +## FONTS +*.ttf binary +*.eot binary +*.otf binary +*.woff binary +*.woff2 binary + +## EXECUTABLES +*.exe binary +*.pyc binary \ No newline at end of file diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..e931c66 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +github: [ptkdev] +patreon: ptkdev +ko_fi: ptkdev diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100755 index 0000000..4029a41 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,37 @@ +--- +name: 🐛 Bug report +about: Create a report to help us improve +--- + + + +### Versions + + + +- **App Version:** v1.0.0 +- **Node Version:** v13.0.0 +- **Operating System:** Windows 10 +- **Browser:** Google Chrome v80 + +### Expected Behavior + + + +### Actual Behavior + + + +### Steps to Reproduce + + + +1. ... +2. ... +3. ... + +### Screenshots (Optional) + + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100755 index 0000000..295508a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,14 @@ +--- +name: 💫 Feature request +about: Suggest an idea for this project +--- + + + +### Feature description + + + +### Feature motivation + + diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md new file mode 100755 index 0000000..20ff1ec --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.md @@ -0,0 +1,10 @@ +--- +name: 🗨 Question +about: Ask a question +--- + + + +### Question + + diff --git a/.github/assets/screenshot.png b/.github/assets/screenshot.png new file mode 100644 index 0000000..66cc778 Binary files /dev/null and b/.github/assets/screenshot.png differ diff --git a/.github/assets/social_discord.png b/.github/assets/social_discord.png new file mode 100644 index 0000000..b90d45a Binary files /dev/null and b/.github/assets/social_discord.png differ diff --git a/.github/assets/social_telegram.png b/.github/assets/social_telegram.png new file mode 100644 index 0000000..63e9c93 Binary files /dev/null and b/.github/assets/social_telegram.png differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..642a986 --- /dev/null +++ b/.gitignore @@ -0,0 +1,128 @@ +###################################################################################### +# License: MIT - http://opensource.org/licenses/MIT # +# Author: Patryk Rzucidło (@ptkdev) https://ptk.dev # +# Original: octocat - https://github.com/octocat # +# Latest version: https://github.com/ptkdev/dotfiles # +###################################################################################### + +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so + +# Packages # +############ +*.7z +*.dmg +*.gz +*.iso +*.jar +*.rar +*.tar +*.zip + +# Eclipse # +########### +.classpath +.project +.settings +.idea +.idea/ +.metadata +*.iml +*.ipr +proguard/ + +# Logs and databases # +###################### +logs/*.log +logs/screenshots/*.png +logs/screenshots/*.jpg +examples/*.log +examples/*.json +databases/*.db +databases/*.sql +databases/*.json +*.log +*.sql +*.sqlite +*.lock +yarn-debug.log +yarn-error.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db + +# Python # +########## +*.pyc +*.pyo + +# KDE/Linux generated files # +############################# +.directory + +# Backup generated files # +########################## +*~ +*.swp +*.bak +*# + +# Android # +########### +*.apk +*.ap_ +*.dex +bin/ +gen/ +.gradle/ +build/ +local.properties + +# Vagrant # +########### +/.vagrant + +# PHP # +####### +./config.php +phpunit.xml +/vendor +composer.phar +/bower_components + +# Runtime data # +################ +pids +*.pid +*.seed +*.pid.lock +*.eslintcache + +# NodeJS # +########## +npm-debug.log +/node_modules + +# Husky # +/.husky/_/ + +# App # +####### +/app/configs/config.js +/app/configs/config.ts +/extra +/dist +/build \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..e69de29 diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 0000000..31354ec --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..d0612ad --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npm run pre-commit diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..5c6d08d --- /dev/null +++ b/.npmignore @@ -0,0 +1,7 @@ +**/* +!/dist/**/* +!/platforms/**/* +!/plugins/**/* +!/extra/**/* +!*.md +!package*.json \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..d693ff8 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +/plugins +/platforms \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..f64919e --- /dev/null +++ b/.prettierrc @@ -0,0 +1,9 @@ +{ + "bracketSpacing": true, + "printWidth": 160, + "semi": true, + "singleQuote": false, + "tabWidth": 4, + "trailingComma": "all", + "useTabs": true +} diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..72190e6 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["svelte.svelte-vscode", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "gruntfuggly.todo-tree", "nickdodd79.gulptasks"] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..446b642 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,64 @@ +{ + "files.autoSave": "afterDelay", + "files.autoSaveDelay": 30000, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, + "eslint.format.enable": true, + "[javascript]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint" + }, + "[typescript]": { + "editor.defaultFormatter": "vscode.typescript-language-features" + }, + "[scss]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[css]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[html]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[jsonc]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[svelte]": { + "editor.defaultFormatter": "svelte.svelte-vscode" + }, + "editor.formatOnSave": true, + "editor.formatOnPaste": true, + "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "svelte"], + "eslint.options": { + "extensinons": [".ts", ".js", ".tsx", ".jsx", ".svelte"] + }, + "todo-tree.highlights.customHighlight": { + "TODO": { + "foreground": "black", + "background": "#82AAFF", + "icon": "tag", + "iconColour": "#82AAFF", + "gutterIcon": true + }, + "BUG": { + "foreground": "white", + "background": "#AC4142", + "icon": "bug", + "iconColour": "#AC4142", + "gutterIcon": true + }, + "FIXME": { + "foreground": "black", + "background": "#FFCC00", + "iconColour": "#FFCC00", + "icon": "alert", + "gutterIcon": true + } + }, + "todo-tree.highlights.defaultHighlight": { + "type": "text-and-comment" + } +} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..be7a624 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +# v1.0.20210407 (April 07, 2021) + +- First release + + + +[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=flat&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=flat&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate Github Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=flat&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=flat&logo=patreon)](https://www.patreon.com/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/donate-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat&logo=bitcoin)]() [![Donate Ethereum](https://img.shields.io/badge/donate-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat&logo=ethereum)]() + + diff --git a/LICENSE.md b/LICENSE.md new file mode 100755 index 0000000..426d8f2 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,68 @@ +## MIT License + +> Code and Contributions + +Copyright (c) 2021 Patryk Rzucidło (PTKDev) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +##### https://choosealicense.com/licenses/mit/ + +## Creative Commons BY-NC 4.0 License + +> Images, assets and logos + +Copyleft (c) 2021 Patryk Rzucidło (PTKDev) + +#### You are free to: + +- Share — copy and redistribute the material in any medium or format +- Adapt — remix, transform, and build upon the material + +The licensor cannot revoke these freedoms as long as you follow the license terms. + +#### Under the following terms: + +- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that - suggests the licensor endorses you or your use. +- NonCommercial — You may not use the material for commercial purposes. + +No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. + +##### https://creativecommons.org/licenses/by-nc/4.0/ + +## Creative Commons BY 4.0 License + +> Documentation and Translations + +Copyleft (c) 2021 Patryk Rzucidło (PTKDev) + +#### You are free to: + +- Share — copy and redistribute the material in any medium or format +- Adapt — remix, transform, and build upon the material for any purpose, even commercially. + +The licensor cannot revoke these freedoms as long as you follow the license terms. + +#### Under the following terms: + +- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. + +No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. + +##### https://creativecommons.org/licenses/by/4.0/ diff --git a/README.md b/README.md old mode 100644 new mode 100755 index eeddc7f..fba3fd5 --- a/README.md +++ b/README.md @@ -1,2 +1,139 @@ -# svelte-cordova-boilerplate -📱 Create a desktop app with this friendly Svelte boilerplate for electron +# 🧬 svelte-cordova-boilerplate + + + +[![v1.0.20210407](https://img.shields.io/badge/version-v1.0.20210407-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev-boilerplate/svelte-cordova-boilerplate/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/svelte-cordova-boilerplate?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/svelte-cordova-boilerplate) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev-boilerplate/svelte-cordova-boilerplate/blob/main/LICENSE.md) [![Powered By Svelte](https://img.shields.io/badge/powered%20by-svelte-FF3C02.svg?style=flat&logo=svelte)](https://svelte.dev/) [![Powered By Cordova](https://img.shields.io/badge/powered%20by-cordova-9feaf9.svg?style=flat&logo=cordova)](https://cordovajs.org/) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io) + + + +Create a android and ios mobile app with this friendly Svelte boilerplate for cordova + +## 🎁 Support: Donate + +> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!** + + + +[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=flat&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=flat&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate Github Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=flat&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=flat&logo=patreon)](https://www.patreon.com/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/donate-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat&logo=bitcoin)]() [![Donate Ethereum](https://img.shields.io/badge/donate-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat&logo=ethereum)]() + + + +## 📎 Menu + +- 💡 [Features](#-features) +- 👔 [Screenshot](#-screenshot) +- 📚 [Documentation](#-documentation) +- 🔨 [Developer Mode](#-developer-mode) +- - 🏁 [Run Project](#-run-project) +- - 💾 [Setup Project](#-setup-project) +- 👨‍💻 [Contributing](#-contributing) +- 🐛 [Known Bugs](https://github.com/ptkdev-boilerplate/svelte-cordova-boilerplate/issues?q=is%3Aopen+is%3Aissue+label%3Abug) +- 🍻 Community: + - [Discord](http://discord.ptkdev.io) ([🇬🇧 English Channel](https://discord.gg/jqUSGPKdmA) | [🇮🇹 Italian Channel](https://discord.gg/SJFcbvG6RU) | [🇵🇱 Polish Channel](https://discord.gg/25vg4VFhb7)) + +## 💡 Features + +- [✔️] Easy to use +- [✔️] MIT License +- [✔️] Svelte SPA + Cordova Mobile App +- [✔️] Android App +- [✔️] iPhone/iOS App +- [✔️] Browser sync, auto refresh, auto reload +- [✔️] Dark mode +- [✔️] 100% on Google Speedpage +- [✔️] Friendly boilerplate + Github templates +- [✔️] Powered by svelte framework +- [✔️] Without jQuery depencence +- [✔️] Typescript + TSPaths preconfigured +- [✔️] Userfriendly folders tree +- [✔️] Prettiers and ESLint preconfigured +- [✔️] all-contributors-cli and all-shields-cli preconfigured +- [✔️] JEST Test preconfigured +- [✔️] Full async code +- [✔️] Github and Vscode dotfiles preconfigured +- [✔️] Translations i18n: 🇬🇧 🇮🇹 🇵🇱 (Help me ❤️) + +## 👔 Screenshot + +[![svelte-cordova-boilerplate](https://raw.githubusercontent.com/ptkdev-boilerplate/svelte-cordova-boilerplate/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev-boilerplate/svelte-cordova-boilerplate/main/.github/assets/screenshot.png) + +## 🔨 Developer Mode + +#### 🏁 Run Project + +1. Clone this repository or download [nightly](https://github.com/ptkdev-boilerplate/svelte-cordova-boilerplate/archive/nightly.zip), [beta](https://github.com/ptkdev-boilerplate/svelte-cordova-boilerplate/archive/beta.zip) or [stable](https://github.com/ptkdev-boilerplate/svelte-cordova-boilerplate/archive/main.zip). +2. Run `npm run init` +3. Run `npm run dev` +4. Run `npm run dev:cordova` +5. Open `platform/android` with android studio or `platform/ios` with xCode. +6. Press RUN. + +#### 💾 Setup Project + +If you want replace all strings (example: package name, author, urls, etc...) in markdown file, source files and others files of this project you need edit `setup.json` with correct values and run `npm run setup`. + +## 📚 Documentation + +Run `npm run docs` + +## 👑 Backers and Sponsors + +Thanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.patreon.com/join/ptkdev), [ko-fi](https://www.patreon.com/join/ptkdev), [github](https://www.patreon.com/join/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar, name and web site url. + +[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) + +## 👨‍💻 Contributing + +I ❤️ contributions! I will happily accept your pull request! Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file. + +Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): + + + + + + + + +

Patryk Rzucidło

💻 🌍 📖 🐛
+ + + + + + +> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations! + +## 🦄 Other Projects + + + +[![](https://img.shields.io/badge/💻%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/) + + + + + +[![](https://img.shields.io/badge/🦒%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/🦌%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/🖥️%20Tools-Aspect%20Ratio%2021:9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/🛡%20Tools-Badges:%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/🐾%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/🐍%20Tools-ESLint:%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs) + + + + + +[![](https://img.shields.io/badge/📸%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/👑%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/🏞%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow) + + + + + +[![](https://img.shields.io/badge/🎨%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/📚%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/👔%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev-boilerplate?q=svelte) [![](https://img.shields.io/badge/👔%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev-boilerplate?q=webcomponent) [![](https://img.shields.io/badge/👔%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev-boilerplate?q=bot) [![](https://img.shields.io/badge/👔%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev-boilerplate?q=node) [![](https://img.shields.io/badge/💅%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/📱%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free) + + + +## 💫 License + +- Code and Contributions have **MIT License** +- Images and logos have **CC BY-NC 4.0 License** ([Freepik](https://it.freepik.com/) Premium License) +- Documentations and Translations have **CC BY 4.0 License** + +###### Copyleft (c) 2021 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)> diff --git a/app/components/common/darkmode/darkmode.scss b/app/components/common/darkmode/darkmode.scss new file mode 100644 index 0000000..0326971 --- /dev/null +++ b/app/components/common/darkmode/darkmode.scss @@ -0,0 +1,68 @@ +/** + * Dark Mode SCSS + * ===================== + * + * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) + * + * @license: MIT License + * + */ +#app.darkmode { + color: white; + background: black; + background-color: black; + + body::-webkit-scrollbar { + width: 0.4em; + } + + body::-webkit-scrollbar-track { + box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); + } + + body::-webkit-scrollbar-thumb { + background-color: rgb(51, 50, 50); + outline: 1px solid rgb(4, 6, 7); + } + + .switch[type="checkbox"]:focus + label::after, + .switch[type="checkbox"]:focus + label::before, + .switch[type="checkbox"]:focus + label:after, + .switch[type="checkbox"]:focus + label:before { + outline: none; + } + + a { + color: white; + } + + .navbar, + .footer, + .navbar-dropdown, + .navbar-dropdown, + a.navbar-link, + a.navbar-item, + a.navbar-item:focus, + a.navbar-link:focus-within, + a.navbar-item:focus-within, + a.navbar-item.is-active, + .is-primary { + color: white; + background: black; + background-color: black; + background-image: none; + } + + .navbar-link:focus, + a.navbar-item:hover, + a.navbar-link:focus, + a.navbar-link:hover { + background: darkslategray; + background-color: darkslategray; + background-image: none; + } + + .hero.is-primary { + background-image: linear-gradient(141deg, black 0%, rgb(35, 59, 59) 50%, black 100%); + } +} diff --git a/app/components/common/darkmode/darkmode.svelte b/app/components/common/darkmode/darkmode.svelte new file mode 100644 index 0000000..4f09410 --- /dev/null +++ b/app/components/common/darkmode/darkmode.svelte @@ -0,0 +1,24 @@ + + +
+ darkModeToggle()} {checked} /> +
diff --git a/app/components/common/darkmode/darkmode.ts b/app/components/common/darkmode/darkmode.ts new file mode 100644 index 0000000..8e69cc0 --- /dev/null +++ b/app/components/common/darkmode/darkmode.ts @@ -0,0 +1,56 @@ +/** + * DarkMode Typescript + * ===================== + * + * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) + * + * @license: MIT License + * + */ +let darkmode = false; + +/** + * DarkMode Toggle + * ===================== + * Return true or false if darkmode is enabled + * + * @return {boolean} darkmode - true = dark mode enabled, false = light mode enabled + * + */ +const darkModeToggle = (): boolean => { + if (document.querySelector("html").classList.contains("darkmode")) { + darkmode = false; + } else { + darkmode = true; + } + + document.querySelector("html").classList.toggle("darkmode"); + document.querySelector("body").classList.toggle("darkmode"); + + window.localStorage.setItem("darkmode", darkmode ? "enabled" : "disabled"); + + return darkmode; +}; + +/** + * DarkMode Detect + * ===================== + * Check if exist prefers-color-scheme or darkmode value from localStorage() and set dark mode + * + * @return {boolean} darkmode - true = dark mode enabled, false = light mode enabled + * + */ +const darkModeDetect = (): boolean => { + if (window.localStorage.getItem("darkmode") === "enabled" || (window.localStorage.getItem("darkmode") === undefined && window?.matchMedia("(prefers-color-scheme: dark)").matches)) { + if (!document.querySelector("html").classList.contains("darkmode")) { + document.querySelector("html").classList.add("darkmode"); + document.querySelector("body").classList.add("darkmode"); + } + + return true; + } + + return false; +}; + +export { darkModeToggle, darkModeDetect, darkmode }; diff --git a/app/components/common/footer/footer.scss b/app/components/common/footer/footer.scss new file mode 100644 index 0000000..1e8619c --- /dev/null +++ b/app/components/common/footer/footer.scss @@ -0,0 +1,9 @@ +/** + * Footer CSS + * ===================== + * + * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) + * + * @license: MIT License + * + */ diff --git a/app/components/common/footer/footer.svelte b/app/components/common/footer/footer.svelte new file mode 100644 index 0000000..8d0825a --- /dev/null +++ b/app/components/common/footer/footer.svelte @@ -0,0 +1,25 @@ + + +
+
+

+ The source code is licensed + MIT. +

+
+
+ + diff --git a/app/components/common/footer/footer.ts b/app/components/common/footer/footer.ts new file mode 100644 index 0000000..d50ffd4 --- /dev/null +++ b/app/components/common/footer/footer.ts @@ -0,0 +1,10 @@ +/** + * Footer Typescript + * ===================== + * + * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) + * + * @license: MIT License + * + */ +export { }; diff --git a/app/components/common/menu/menu.scss b/app/components/common/menu/menu.scss new file mode 100644 index 0000000..254348c --- /dev/null +++ b/app/components/common/menu/menu.scss @@ -0,0 +1,9 @@ +/** + * Menu CSS + * ===================== + * + * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) + * + * @license: MIT License + * + */ diff --git a/app/components/common/menu/menu.svelte b/app/components/common/menu/menu.svelte new file mode 100644 index 0000000..40199b7 --- /dev/null +++ b/app/components/common/menu/menu.svelte @@ -0,0 +1,48 @@ + + + + + diff --git a/app/components/common/menu/menu.ts b/app/components/common/menu/menu.ts new file mode 100644 index 0000000..d50ffd4 --- /dev/null +++ b/app/components/common/menu/menu.ts @@ -0,0 +1,10 @@ +/** + * Footer Typescript + * ===================== + * + * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) + * + * @license: MIT License + * + */ +export { }; diff --git a/app/configs/config.js.tpl b/app/configs/config.js.tpl new file mode 100755 index 0000000..85243c0 --- /dev/null +++ b/app/configs/config.js.tpl @@ -0,0 +1,26 @@ +module.exports = { + // Server + "server": { + "port": 5000, + }, + + // Debug + "debug": true, + + // LOGS + "log": { + "path": { + "debug_log": "./logs/debug.log", + "error_log": "./logs/errors.log" + }, + "language": "en", // set language of log type, NOTE: please help with translations! (optional, default en - values: en|it|pl) + "colors": "enabled", // enable/disable colors in terminal (optional, default enabled - values: true|enabled or false|disabled) + "debug": "enabled", // enable/disable all logs with method debug (optional, default enabled - values: true|enabled or false|disabled) + "info": "enabled", // enable/disable all logs with method info (optional, default enabled - values: true|enabled or false|disabled) + "warning": "enabled", // enable/disable all logs with method warning (optional, default enabled - values: true|enabled or false|disabled) + "error": "enabled", // enable/disable all logs with method errors (optional, default enabled - values: true|enabled or false|disabled) + "sponsor": "enabled", // enable/disable all logs with method sponsor (optional, default enabled - values: true|enabled or false|disabled) + "write": "enabled", // write the logs into a file, you need set path values (optional, default disabled - values: true|enabled or false|disabled) + "type": "log" // format of logs in files (optional, default log - values: log|json) + } +}; diff --git a/app/core/init.ts b/app/core/init.ts new file mode 100644 index 0000000..cecf3f4 --- /dev/null +++ b/app/core/init.ts @@ -0,0 +1,17 @@ +/** + * Svelte Init + * ===================== + * Create svelte app + * + * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) + * + * @license: MIT License + * + */ +import App from "@app/pages/index/index.svelte"; + +const app = new App({ + target: document.body, +}); + +export default app; diff --git a/app/pages/404/404.scss b/app/pages/404/404.scss new file mode 100644 index 0000000..a42e568 --- /dev/null +++ b/app/pages/404/404.scss @@ -0,0 +1,9 @@ +/** + * Not Found SCSS + * ===================== + * + * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) + * + * @license: MIT License + * + */ diff --git a/app/pages/404/404.svelte b/app/pages/404/404.svelte new file mode 100644 index 0000000..91cd705 --- /dev/null +++ b/app/pages/404/404.svelte @@ -0,0 +1,34 @@ + + + + +
+
+
+
+

Not Found!

+
+
+
+
+

Oops, this route doesn't exist!

+
+
+ +