├── .all-contributorsrc ├── .all-shieldsrc ├── .editorconfig ├── .eslintignore ├── .eslintrc.cjs ├── .gitattributes ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── feature_request.md │ ├── paid_support.md │ └── question.md └── assets │ ├── screenshot.png │ ├── social_discord.png │ ├── social_telegram.png │ └── social_twitter.png ├── .gitignore ├── .gitmodules ├── .husky ├── .gitignore └── pre-commit ├── .npmignore ├── .prettierignore ├── .prettierrc ├── .vscode ├── extensions.json └── settings.json ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── app ├── components │ └── common │ │ ├── darkmode │ │ ├── darkmode.scss │ │ ├── darkmode.svelte │ │ └── darkmode.ts │ │ ├── footer │ │ ├── footer.scss │ │ ├── footer.svelte │ │ └── footer.ts │ │ └── menu │ │ ├── menu.scss │ │ ├── menu.svelte │ │ └── menu.ts ├── configs │ └── config.js.tpl ├── core │ └── init.ts ├── pages │ ├── 404 │ │ ├── 404.scss │ │ ├── 404.svelte │ │ └── 404.ts │ ├── home │ │ ├── home.scss │ │ ├── home.svelte │ │ └── home.ts │ ├── index │ │ ├── index.scss │ │ ├── index.svelte │ │ └── index.ts │ ├── offline │ │ ├── offline.scss │ │ ├── offline.svelte │ │ └── offline.ts │ └── wild │ │ ├── wild.scss │ │ ├── wild.svelte │ │ └── wild.ts ├── routes │ ├── pages.ts │ └── translations.ts ├── tests │ └── darkmode.test.ts ├── translations │ ├── en.json │ └── it.json └── types │ └── global.type.ts ├── assets └── favicon.png ├── config.xml ├── jest.config.js ├── nodemon.json ├── package-lock.json ├── package.json ├── platforms ├── android │ ├── .gitignore │ ├── CordovaLib │ │ ├── AndroidManifest.xml │ │ ├── build.gradle │ │ ├── cordova.gradle │ │ ├── project.properties │ │ ├── repositories.gradle │ │ └── src │ │ │ └── org │ │ │ └── apache │ │ │ └── cordova │ │ │ ├── AllowList.java │ │ │ ├── AllowListPlugin.java │ │ │ ├── AuthenticationToken.java │ │ │ ├── BuildHelper.java │ │ │ ├── CallbackContext.java │ │ │ ├── CallbackMap.java │ │ │ ├── Config.java │ │ │ ├── ConfigXmlParser.java │ │ │ ├── CordovaActivity.java │ │ │ ├── CordovaArgs.java │ │ │ ├── CordovaBridge.java │ │ │ ├── CordovaClientCertRequest.java │ │ │ ├── CordovaDialogsHelper.java │ │ │ ├── CordovaHttpAuthHandler.java │ │ │ ├── CordovaInterface.java │ │ │ ├── CordovaInterfaceImpl.java │ │ │ ├── CordovaPlugin.java │ │ │ ├── CordovaPluginPathHandler.java │ │ │ ├── CordovaPreferences.java │ │ │ ├── CordovaResourceApi.java │ │ │ ├── CordovaWebView.java │ │ │ ├── CordovaWebViewEngine.java │ │ │ ├── CordovaWebViewImpl.java │ │ │ ├── CoreAndroid.java │ │ │ ├── ExposedJsApi.java │ │ │ ├── ICordovaClientCertRequest.java │ │ │ ├── ICordovaCookieManager.java │ │ │ ├── ICordovaHttpAuthHandler.java │ │ │ ├── LOG.java │ │ │ ├── NativeToJsMessageQueue.java │ │ │ ├── PermissionHelper.java │ │ │ ├── PluginEntry.java │ │ │ ├── PluginManager.java │ │ │ ├── PluginResult.java │ │ │ ├── ResumeCallback.java │ │ │ ├── allowlist │ │ │ ├── index.html │ │ │ └── index2.html │ │ │ └── engine │ │ │ ├── SystemCookieManager.java │ │ │ ├── SystemExposedJsApi.java │ │ │ ├── SystemWebChromeClient.java │ │ │ ├── SystemWebView.java │ │ │ ├── SystemWebViewClient.java │ │ │ └── SystemWebViewEngine.java │ ├── android.json │ ├── app │ │ ├── build.gradle │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ ├── repositories.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── assets │ │ │ └── www │ │ │ │ ├── bundle.css │ │ │ │ ├── bundle.js │ │ │ │ ├── bundle.js.map │ │ │ │ ├── cordova.js │ │ │ │ ├── favicon.png │ │ │ │ └── index.html │ │ │ ├── java │ │ │ └── io │ │ │ │ └── ptkdev │ │ │ │ └── boilerplate │ │ │ │ └── MainActivity.java │ │ │ └── res │ │ │ ├── mipmap-hdpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ ├── ic_launcher_background.png │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-ldpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ ├── ic_launcher_background.png │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-ldpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ ├── ic_launcher_background.png │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ ├── ic_launcher_background.png │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ ├── ic_launcher_background.png │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ ├── ic_launcher_background.png │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ └── strings.xml │ │ │ └── xml │ │ │ └── config.xml │ ├── build.gradle │ ├── cdv-gradle-config.json │ ├── cdv-gradle-name.gradle │ ├── cordova │ │ ├── Api.js │ │ ├── android_sdk_version │ │ ├── defaults.xml │ │ ├── lib │ │ │ ├── list-devices │ │ │ └── list-emulator-images │ │ └── version │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── platform_www │ │ └── cordova.js │ ├── project.properties │ ├── repositories.gradle │ ├── settings.gradle │ └── wrapper.gradle └── ios │ ├── .gitignore │ ├── CordovaLib │ ├── Classes │ │ ├── Private │ │ │ ├── CDVDebug.h │ │ │ ├── CDVJSON_private.h │ │ │ ├── CDVJSON_private.m │ │ │ ├── CDVPlugin+Private.h │ │ │ └── Plugins │ │ │ │ ├── CDVGestureHandler │ │ │ │ ├── CDVGestureHandler.h │ │ │ │ └── CDVGestureHandler.m │ │ │ │ ├── CDVHandleOpenURL │ │ │ │ ├── CDVHandleOpenURL.h │ │ │ │ └── CDVHandleOpenURL.m │ │ │ │ ├── CDVIntentAndNavigationFilter │ │ │ │ ├── CDVIntentAndNavigationFilter.h │ │ │ │ └── CDVIntentAndNavigationFilter.m │ │ │ │ ├── CDVLaunchScreen │ │ │ │ ├── CDVLaunchScreen.h │ │ │ │ └── CDVLaunchScreen.m │ │ │ │ ├── CDVLogger │ │ │ │ ├── CDVLogger.h │ │ │ │ └── CDVLogger.m │ │ │ │ └── CDVWebViewEngine │ │ │ │ ├── CDVWebViewEngine.h │ │ │ │ ├── CDVWebViewEngine.m │ │ │ │ ├── CDVWebViewUIDelegate.h │ │ │ │ └── CDVWebViewUIDelegate.m │ │ └── Public │ │ │ ├── CDV.h │ │ │ ├── CDVAppDelegate.h │ │ │ ├── CDVAppDelegate.m │ │ │ ├── CDVAvailability.h │ │ │ ├── CDVAvailabilityDeprecated.h │ │ │ ├── CDVCommandDelegate.h │ │ │ ├── CDVCommandDelegateImpl.h │ │ │ ├── CDVCommandDelegateImpl.m │ │ │ ├── CDVCommandQueue.h │ │ │ ├── CDVCommandQueue.m │ │ │ ├── CDVConfigParser.h │ │ │ ├── CDVConfigParser.m │ │ │ ├── CDVInvokedUrlCommand.h │ │ │ ├── CDVInvokedUrlCommand.m │ │ │ ├── CDVPlugin+Resources.h │ │ │ ├── CDVPlugin+Resources.m │ │ │ ├── CDVPlugin.h │ │ │ ├── CDVPlugin.m │ │ │ ├── CDVPluginResult.h │ │ │ ├── CDVPluginResult.m │ │ │ ├── CDVScreenOrientationDelegate.h │ │ │ ├── CDVTimer.h │ │ │ ├── CDVTimer.m │ │ │ ├── CDVURLSchemeHandler.h │ │ │ ├── CDVURLSchemeHandler.m │ │ │ ├── CDVViewController.h │ │ │ ├── CDVViewController.m │ │ │ ├── CDVWebViewEngineProtocol.h │ │ │ ├── CDVWebViewProcessPoolFactory.h │ │ │ ├── CDVWebViewProcessPoolFactory.m │ │ │ ├── CDVWhitelist.h │ │ │ ├── CDVWhitelist.m │ │ │ ├── NSDictionary+CordovaPreferences.h │ │ │ ├── NSDictionary+CordovaPreferences.m │ │ │ ├── NSMutableArray+QueueAdditions.h │ │ │ └── NSMutableArray+QueueAdditions.m │ ├── CordovaLib.xcodeproj │ │ └── project.pbxproj │ ├── CordovaLib_Prefix.pch │ ├── VERSION │ └── cordova.js │ ├── cordova │ ├── Api.js │ ├── apple_ios_version │ ├── apple_osx_version │ ├── apple_xcode_version │ ├── build │ ├── build-debug.xcconfig │ ├── build-extras.xcconfig │ ├── build-release.xcconfig │ ├── build.bat │ ├── build.xcconfig │ ├── check_reqs │ ├── check_reqs.bat │ ├── clean │ ├── clean.bat │ ├── defaults.xml │ ├── lib │ │ ├── BridgingHeader.js │ │ ├── Podfile.js │ │ ├── PodsJson.js │ │ ├── build.js │ │ ├── check_reqs.js │ │ ├── clean.js │ │ ├── list-devices │ │ ├── list-emulator-build-targets │ │ ├── list-emulator-images │ │ ├── list-started-emulators │ │ ├── listDevices.js │ │ ├── listEmulatorBuildTargets.js │ │ ├── listEmulatorImages.js │ │ ├── listStartedEmulators.js │ │ ├── plugman │ │ │ └── pluginHandlers.js │ │ ├── prepare.js │ │ ├── projectFile.js │ │ ├── run.js │ │ ├── start-emulator │ │ └── versions.js │ ├── log │ ├── log.bat │ ├── loggingHelper.js │ ├── node_modules │ │ ├── .bin │ │ │ └── nopt │ │ ├── fs-extra │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── lib │ │ │ │ ├── copy-sync │ │ │ │ │ ├── copy-sync.js │ │ │ │ │ └── index.js │ │ │ │ ├── copy │ │ │ │ │ ├── copy.js │ │ │ │ │ └── index.js │ │ │ │ ├── empty │ │ │ │ │ └── index.js │ │ │ │ ├── ensure │ │ │ │ │ ├── file.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── link.js │ │ │ │ │ ├── symlink-paths.js │ │ │ │ │ ├── symlink-type.js │ │ │ │ │ └── symlink.js │ │ │ │ ├── fs │ │ │ │ │ └── index.js │ │ │ │ ├── index.js │ │ │ │ ├── json │ │ │ │ │ ├── index.js │ │ │ │ │ ├── jsonfile.js │ │ │ │ │ ├── output-json-sync.js │ │ │ │ │ └── output-json.js │ │ │ │ ├── mkdirs │ │ │ │ │ ├── index.js │ │ │ │ │ └── make-dir.js │ │ │ │ ├── move-sync │ │ │ │ │ ├── index.js │ │ │ │ │ └── move-sync.js │ │ │ │ ├── move │ │ │ │ │ ├── index.js │ │ │ │ │ └── move.js │ │ │ │ ├── output │ │ │ │ │ └── index.js │ │ │ │ ├── path-exists │ │ │ │ │ └── index.js │ │ │ │ ├── remove │ │ │ │ │ ├── index.js │ │ │ │ │ └── rimraf.js │ │ │ │ └── util │ │ │ │ │ ├── stat.js │ │ │ │ │ └── utimes.js │ │ │ └── package.json │ │ └── nopt │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── lib │ │ │ └── nopt.js │ │ │ └── package.json │ ├── run │ ├── run.bat │ ├── version │ └── version.bat │ ├── ios.json │ ├── platform_www │ ├── cordova-js-src │ │ ├── exec.js │ │ ├── platform.js │ │ └── plugin │ │ │ └── ios │ │ │ ├── console.js │ │ │ ├── launchscreen.js │ │ │ ├── logger.js │ │ │ └── wkwebkit.js │ └── cordova.js │ ├── pods-debug.xcconfig │ ├── pods-release.xcconfig │ ├── svelte-cordova-boilerplate.xcodeproj │ └── project.pbxproj │ ├── svelte-cordova-boilerplate.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── svelte-cordova-boilerplate.xcscheme │ ├── svelte-cordova-boilerplate │ ├── .gitignore │ ├── Bridging-Header.h │ ├── CDVLaunchScreen.storyboard │ ├── Classes │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── MainViewController.h │ │ ├── MainViewController.m │ │ └── MainViewController.xib │ ├── Entitlements-Debug.plist │ ├── Entitlements-Release.plist │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── icon-1024.png │ │ │ ├── icon-20.png │ │ │ ├── icon-20@2x.png │ │ │ ├── icon-20@3x.png │ │ │ ├── icon-24@2x.png │ │ │ ├── icon-27.5@2x.png │ │ │ ├── icon-29.png │ │ │ ├── icon-29@2x.png │ │ │ ├── icon-29@3x.png │ │ │ ├── icon-40.png │ │ │ ├── icon-40@2x.png │ │ │ ├── icon-44@2x.png │ │ │ ├── icon-50.png │ │ │ ├── icon-50@2x.png │ │ │ ├── icon-60@2x.png │ │ │ ├── icon-60@3x.png │ │ │ ├── icon-72.png │ │ │ ├── icon-72@2x.png │ │ │ ├── icon-76.png │ │ │ ├── icon-76@2x.png │ │ │ ├── icon-83.5@2x.png │ │ │ ├── icon-86@2x.png │ │ │ ├── icon-98@2x.png │ │ │ ├── icon.png │ │ │ └── icon@2x.png │ │ ├── BackgroundColor.colorset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── LaunchStoryboard.imageset │ │ │ └── Contents.json │ ├── Plugins │ │ └── README │ ├── Scripts │ │ └── copy-www-build-step.sh │ ├── config.xml │ ├── main.m │ ├── svelte-cordova-boilerplate-Info.plist │ └── svelte-cordova-boilerplate-Prefix.pch │ └── www │ ├── bundle.css │ ├── bundle.js │ ├── bundle.js.map │ ├── cordova-js-src │ ├── exec.js │ ├── platform.js │ └── plugin │ │ └── ios │ │ ├── console.js │ │ ├── launchscreen.js │ │ ├── logger.js │ │ └── wkwebkit.js │ ├── cordova.js │ ├── favicon.png │ └── index.html ├── plugins └── fetch.json ├── public └── index.html ├── rollup.config.js ├── scripts ├── changelog.ts ├── configs.ts ├── debug.ts ├── platforms.ts ├── rmdist.ts ├── rmplatforms.ts └── setup.ts ├── setup.json ├── tsconfig.json └── www └── index.html /.all-contributorsrc: -------------------------------------------------------------------------------- 1 | { 2 | "projectName": "ptkdev-boilerplate/svelte-cordova-boilerplate", 3 | "projectOwner": "ptkdev", 4 | "repoType": "github", 5 | "repoHost": "https://github.com", 6 | "files": [ 7 | "README.md" 8 | ], 9 | "imageSize": 100, 10 | "commit": true, 11 | "contributors": [ 12 | { 13 | "login": "ptkdev", 14 | "name": "Patryk Rzucidło", 15 | "avatar_url": "https://avatars1.githubusercontent.com/u/442844?v=4", 16 | "profile": "https://ptk.dev", 17 | "contributions": [ 18 | "code", 19 | "translation", 20 | "doc", 21 | "bug" 22 | ] 23 | } 24 | ], 25 | "contributorsPerLine": 6, 26 | "commitConvention": "none" 27 | } 28 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: https://EditorConfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | charset = utf-8 7 | end_of_line = lf 8 | insert_final_newline = false 9 | trim_trailing_whitespace = true 10 | indent_style = tab 11 | indent_size = 4 12 | 13 | [*.py] 14 | indent_style = space 15 | indent_size = 4 -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | /dist 2 | /examples 3 | /platforms 4 | /plugins -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [ptkdev] 2 | patreon: ptkdev 3 | ko_fi: ptkdev 4 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 🐛 Bug report 3 | about: Create a report to help us improve (low priority) 4 | --- 5 | 6 | 7 | 8 | ### Versions 9 | 10 | 11 | 12 | - **App Version:** v1.0.0 13 | - **Node Version:** v13.0.0 14 | - **Operating System:** Windows 10 15 | - **Browser:** Google Chrome v80 16 | 17 | ### Expected Behavior 18 | 19 | 20 | 21 | ### Actual Behavior 22 | 23 | 25 | 26 | ### Steps to Reproduce 27 | 28 | 30 | 31 | 1. ... 32 | 2. ... 33 | 3. ... 34 | 35 | ### Screenshots (Optional) 36 | 37 | 38 | 39 | 47 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 💫 Feature request 3 | about: Suggest an idea or new feature for this project (low priority) 4 | --- 5 | 6 | 7 | 8 | ### Feature description 9 | 10 | 11 | 12 | ### Feature motivation 13 | 14 | 15 | 16 | 24 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/paid_support.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 🎖 Paid support 3 | about: If you need paid support with hight priority donate correct tier on github.com/sponsors/ptkdev or patreon.com/join/ptkdev and send email to support@ptkdev.io 4 | --- 5 | 6 | ## PAID SUPPORT 7 | 8 | If you need paid support with hight priority donate correct tier on: 9 | 10 | - https://github.com/sponsors/ptkdev 11 | - https://www.patreon.com/join/ptkdev 12 | 13 | Please send me an email (support@ptkdev.io) before donation, i try provide correct price quotation for your bug or new feature. 14 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 🗨 Question 3 | about: Ask a question (we recommended use 💬 discussion tab and open questions on repository forum) 4 | --- 5 | 6 | 7 | 8 | ### Question 9 | 10 | 11 | -------------------------------------------------------------------------------- /.github/assets/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptkdev-boilerplate/svelte-cordova-boilerplate/0cedcce1c5be5e1d6494cd4bc0e9cebd02d00ffc/.github/assets/screenshot.png -------------------------------------------------------------------------------- /.github/assets/social_discord.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptkdev-boilerplate/svelte-cordova-boilerplate/0cedcce1c5be5e1d6494cd4bc0e9cebd02d00ffc/.github/assets/social_discord.png -------------------------------------------------------------------------------- /.github/assets/social_telegram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptkdev-boilerplate/svelte-cordova-boilerplate/0cedcce1c5be5e1d6494cd4bc0e9cebd02d00ffc/.github/assets/social_telegram.png -------------------------------------------------------------------------------- /.github/assets/social_twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptkdev-boilerplate/svelte-cordova-boilerplate/0cedcce1c5be5e1d6494cd4bc0e9cebd02d00ffc/.github/assets/social_twitter.png -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptkdev-boilerplate/svelte-cordova-boilerplate/0cedcce1c5be5e1d6494cd4bc0e9cebd02d00ffc/.gitmodules -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npm run pre-commit 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | **/* 2 | !/dist/**/* 3 | !/platforms/**/* 4 | !/plugins/**/* 5 | !/extra/**/* 6 | !*.md 7 | !package*.json -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | /plugins 2 | /platforms -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "bracketSpacing": true, 3 | "printWidth": 120, 4 | "semi": true, 5 | "singleQuote": false, 6 | "tabWidth": 4, 7 | "trailingComma": "all", 8 | "useTabs": true 9 | } 10 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "ptkdev.dark-blood-theme", 4 | "naumovs.color-highlight", 5 | "svelte.svelte-vscode", 6 | "esbenp.prettier-vscode", 7 | "dbaeumer.vscode-eslint", 8 | "gruntfuggly.todo-tree", 9 | "nickdodd79.gulptasks" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.autoSave": "afterDelay", 3 | "files.autoSaveDelay": 30000, 4 | "editor.codeActionsOnSave": { 5 | "source.fixAll.eslint": true 6 | }, 7 | "eslint.format.enable": true, 8 | "[javascript]": { 9 | "editor.defaultFormatter": "esbenp.prettier-vscode" 10 | }, 11 | "[typescript]": { 12 | "editor.defaultFormatter": "esbenp.prettier-vscode" 13 | }, 14 | "[scss]": { 15 | "editor.defaultFormatter": "esbenp.prettier-vscode" 16 | }, 17 | "[css]": { 18 | "editor.defaultFormatter": "esbenp.prettier-vscode" 19 | }, 20 | "[html]": { 21 | "editor.defaultFormatter": "esbenp.prettier-vscode" 22 | }, 23 | "[jsonc]": { 24 | "editor.defaultFormatter": "esbenp.prettier-vscode" 25 | }, 26 | "[json]": { 27 | "editor.defaultFormatter": "esbenp.prettier-vscode" 28 | }, 29 | "[svelte]": { 30 | "editor.defaultFormatter": "svelte.svelte-vscode" 31 | }, 32 | "editor.formatOnSave": true, 33 | "editor.formatOnPaste": true, 34 | "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "svelte"], 35 | "eslint.options": { 36 | "extensinons": [".ts", ".js", ".tsx", ".jsx", ".svelte"] 37 | }, 38 | "todo-tree.highlights.customHighlight": { 39 | "TODO": { 40 | "foreground": "black", 41 | "background": "#82AAFF", 42 | "icon": "tag", 43 | "iconColour": "#82AAFF", 44 | "gutterIcon": true 45 | }, 46 | "BUG": { 47 | "foreground": "white", 48 | "background": "#AC4142", 49 | "icon": "bug", 50 | "iconColour": "#AC4142", 51 | "gutterIcon": true 52 | }, 53 | "FIXME": { 54 | "foreground": "black", 55 | "background": "#FFCC00", 56 | "iconColour": "#FFCC00", 57 | "icon": "alert", 58 | "gutterIcon": true 59 | } 60 | }, 61 | "todo-tree.highlights.defaultHighlight": { 62 | "type": "text-and-comment" 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # v1.0.20211120 (November 20, 2021) 2 | 3 | - Porting: Cordova v10.0.0 4 | 5 | 6 | 7 | [![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate Github Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png) 8 | 9 | 10 | 11 | # v1.0.20210412 (April 12, 2021) 12 | 13 | - Fix: minor fix 14 | - Fix: readme of issues 15 | 16 | # v1.0.20210407 (April 07, 2021) 17 | 18 | - First release 19 | -------------------------------------------------------------------------------- /app/components/common/darkmode/darkmode.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Dark Mode SCSS 3 | * ===================== 4 | * 5 | * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) 6 | * 7 | * @license: MIT License 8 | * 9 | */ 10 | #app.darkmode { 11 | color: white; 12 | background: black; 13 | background-color: black; 14 | 15 | body::-webkit-scrollbar { 16 | width: 0.4em; 17 | } 18 | 19 | body::-webkit-scrollbar-track { 20 | box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); 21 | } 22 | 23 | body::-webkit-scrollbar-thumb { 24 | background-color: rgb(51, 50, 50); 25 | outline: 1px solid rgb(4, 6, 7); 26 | } 27 | 28 | .switch[type="checkbox"]:focus + label::after, 29 | .switch[type="checkbox"]:focus + label::before, 30 | .switch[type="checkbox"]:focus + label:after, 31 | .switch[type="checkbox"]:focus + label:before { 32 | outline: none; 33 | } 34 | 35 | a { 36 | color: white; 37 | } 38 | 39 | .navbar, 40 | .footer, 41 | .navbar-dropdown, 42 | .navbar-dropdown, 43 | a.navbar-link, 44 | a.navbar-item, 45 | a.navbar-item:focus, 46 | a.navbar-link:focus-within, 47 | a.navbar-item:focus-within, 48 | a.navbar-item.is-active, 49 | .is-primary { 50 | color: white; 51 | background: black; 52 | background-color: black; 53 | background-image: none; 54 | } 55 | 56 | .navbar-link:focus, 57 | a.navbar-item:hover, 58 | a.navbar-link:focus, 59 | a.navbar-link:hover { 60 | background: darkslategray; 61 | background-color: darkslategray; 62 | background-image: none; 63 | } 64 | 65 | .hero.is-primary { 66 | background-image: linear-gradient(141deg, black 0%, rgb(35, 59, 59) 50%, black 100%); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /app/components/common/darkmode/darkmode.svelte: -------------------------------------------------------------------------------- 1 | 20 | 21 |
22 | darkModeToggle()} {checked} /> 23 |
25 | -------------------------------------------------------------------------------- /app/components/common/darkmode/darkmode.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * DarkMode Typescript 3 | * ===================== 4 | * 5 | * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) 6 | * 7 | * @license: MIT License 8 | * 9 | */ 10 | let darkmode = false; 11 | 12 | /** 13 | * DarkMode Toggle 14 | * ===================== 15 | * Return true or false if darkmode is enabled 16 | * 17 | * @return {boolean} darkmode - true = dark mode enabled, false = light mode enabled 18 | * 19 | */ 20 | const darkModeToggle = (): boolean => { 21 | if (document.querySelector("html")?.classList.contains("darkmode")) { 22 | darkmode = false; 23 | } else { 24 | darkmode = true; 25 | } 26 | 27 | document.querySelector("html")?.classList.toggle("darkmode"); 28 | document.querySelector("body")?.classList.toggle("darkmode"); 29 | 30 | window.localStorage.setItem("darkmode", darkmode ? "enabled" : "disabled"); 31 | 32 | return darkmode; 33 | }; 34 | 35 | /** 36 | * DarkMode Detect 37 | * ===================== 38 | * Check if exist prefers-color-scheme or darkmode value from localStorage() and set dark mode 39 | * 40 | * @return {boolean} darkmode - true = dark mode enabled, false = light mode enabled 41 | * 42 | */ 43 | const darkModeDetect = (): boolean => { 44 | if ( 45 | window.localStorage.getItem("darkmode") === "enabled" || 46 | (window.localStorage.getItem("darkmode") === undefined && 47 | window?.matchMedia("(prefers-color-scheme: dark)").matches) 48 | ) { 49 | if (!document.querySelector("html")?.classList.contains("darkmode")) { 50 | document.querySelector("html")?.classList.add("darkmode"); 51 | document.querySelector("body")?.classList.add("darkmode"); 52 | } 53 | 54 | return true; 55 | } 56 | 57 | return false; 58 | }; 59 | 60 | export { darkModeToggle, darkModeDetect, darkmode }; 61 | -------------------------------------------------------------------------------- /app/components/common/footer/footer.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Footer CSS 3 | * ===================== 4 | * 5 | * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) 6 | * 7 | * @license: MIT License 8 | * 9 | */ 10 | -------------------------------------------------------------------------------- /app/components/common/footer/footer.svelte: -------------------------------------------------------------------------------- 1 | 13 | 14 |
15 |
16 |

17 | The source code is licensed 18 | MIT. 19 |

20 |
21 |
22 | 23 | 26 | -------------------------------------------------------------------------------- /app/components/common/footer/footer.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Footer Typescript 3 | * ===================== 4 | * 5 | * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) 6 | * 7 | * @license: MIT License 8 | * 9 | */ 10 | export {}; 11 | -------------------------------------------------------------------------------- /app/components/common/menu/menu.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Menu CSS 3 | * ===================== 4 | * 5 | * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) 6 | * 7 | * @license: MIT License 8 | * 9 | */ 10 | -------------------------------------------------------------------------------- /app/components/common/menu/menu.svelte: -------------------------------------------------------------------------------- 1 | 14 | 15 | 45 | 46 | 49 | -------------------------------------------------------------------------------- /app/components/common/menu/menu.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Footer Typescript 3 | * ===================== 4 | * 5 | * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) 6 | * 7 | * @license: MIT License 8 | * 9 | */ 10 | export {}; 11 | -------------------------------------------------------------------------------- /app/configs/config.js.tpl: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // Server 3 | "server": { 4 | "port": 5000, 5 | }, 6 | 7 | // Debug 8 | "debug": true, 9 | 10 | // LOGS 11 | "log": { 12 | "path": { 13 | "debug_log": "./logs/debug.log", 14 | "error_log": "./logs/errors.log" 15 | }, 16 | "language": "en", // set language of log type, NOTE: please help with translations! (optional, default en - values: en|it|pl) 17 | "colors": "enabled", // enable/disable colors in terminal (optional, default enabled - values: true|enabled or false|disabled) 18 | "debug": "enabled", // enable/disable all logs with method debug (optional, default enabled - values: true|enabled or false|disabled) 19 | "info": "enabled", // enable/disable all logs with method info (optional, default enabled - values: true|enabled or false|disabled) 20 | "warning": "enabled", // enable/disable all logs with method warning (optional, default enabled - values: true|enabled or false|disabled) 21 | "error": "enabled", // enable/disable all logs with method errors (optional, default enabled - values: true|enabled or false|disabled) 22 | "sponsor": "enabled", // enable/disable all logs with method sponsor (optional, default enabled - values: true|enabled or false|disabled) 23 | "write": "enabled", // write the logs into a file, you need set path values (optional, default disabled - values: true|enabled or false|disabled) 24 | "type": "log" // format of logs in files (optional, default log - values: log|json) 25 | } 26 | }; 27 | -------------------------------------------------------------------------------- /app/core/init.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Svelte Init 3 | * ===================== 4 | * Create svelte app 5 | * 6 | * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) 7 | * 8 | * @license: MIT License 9 | * 10 | */ 11 | import App from "@app/pages/index/index.svelte"; 12 | 13 | const app = new App({ 14 | target: document.body, 15 | }); 16 | 17 | export default app; 18 | -------------------------------------------------------------------------------- /app/pages/404/404.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Not Found SCSS 3 | * ===================== 4 | * 5 | * @contributors: Patryk Rzucidło [@ptkdev] (https://ptk.dev) 6 | * 7 | * @license: MIT License 8 | * 9 | */ 10 | -------------------------------------------------------------------------------- /app/pages/404/404.svelte: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 |
18 |
19 |
20 |
21 |

Not Found!

22 |
23 |
24 |
25 |
26 |

Oops, this route doesn't exist!

27 |
28 |
29 | 30 |