-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from advenjourney/init-vue
Init Vue
- Loading branch information
Showing
102 changed files
with
13,510 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
> 1% | ||
last 2 versions | ||
not dead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
NODE_ENV=development | ||
VUE_APP_PLATFORM=android | ||
VUE_APP_MODE=native |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
NODE_ENV=development | ||
VUE_APP_PLATFORM=ios | ||
VUE_APP_MODE=native |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
NODE_ENV=development | ||
VUE_APP_PLATFORM=web | ||
VUE_APP_MODE=web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
NODE_ENV=production | ||
VUE_APP_PLATFORM=android | ||
VUE_APP_MODE=native |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
NODE_ENV=production | ||
VUE_APP_PLATFORM=ios | ||
VUE_APP_MODE=native |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
NODE_ENV=production | ||
VUE_APP_PLATFORM=web | ||
VUE_APP_MODE=web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module.exports = { | ||
root: true, | ||
|
||
env: { | ||
node: true | ||
}, | ||
|
||
extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"], | ||
|
||
parserOptions: { | ||
parser: "babel-eslint" | ||
}, | ||
|
||
rules: { | ||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off", | ||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off" | ||
}, | ||
|
||
overrides: [ | ||
{ | ||
files: [ | ||
"**/__tests__/*.{j,t}s?(x)", | ||
"**/tests/unit/**/*.spec.{j,t}s?(x)" | ||
], | ||
env: { | ||
jest: true | ||
} | ||
} | ||
], | ||
|
||
globals: { | ||
TNS_APP_MODE: true, | ||
TNS_APP_PLATFORM: true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
/tests/e2e/videos/ | ||
/tests/e2e/screenshots/ | ||
|
||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# NativeScript application | ||
hooks | ||
platforms | ||
webpack.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
plugins: ["@babel/plugin-syntax-dynamic-import"], | ||
presets: [ | ||
process.env.VUE_PLATFORM === "web" ? "@vue/app" : {}, | ||
["@babel/env", { targets: { esmodules: true } }] | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"pluginsFile": "tests/e2e/plugins/index.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
preset: "@vue/cli-plugin-unit-jest" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"appPath": "src", | ||
"appResourcesPath": "src/App_Resources", | ||
"useLegacyWorkflow": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"name": "novaturient", | ||
"scripts": { | ||
"test:unit": "vue-cli-service test:unit", | ||
"test:e2e": "vue-cli-service test:e2e", | ||
"lint": "vue-cli-service lint", | ||
"build:android": "npm run setup-webpack-config && tns build android --env.production && npm run remove-webpack-config", | ||
"build:ios": "npm run setup-webpack-config && tns build ios --env.production && npm run remove-webpack-config", | ||
"build:web": "vue-cli-service build --mode production.web", | ||
"clean:android": "rimraf platforms/android", | ||
"clean:ios": "rimraf platforms/ios", | ||
"clean:platforms": "rimraf platforms", | ||
"debug:android": "npm run setup-webpack-config && tns debug android --env.development", | ||
"debug:ios": "npm run setup-webpack-config && tns debug ios --env.development", | ||
"preview:android": "npm run setup-webpack-config && tns preview --env.development --env.android", | ||
"preview:ios": "npm run setup-webpack-config && tns preview --env.development --env.ios", | ||
"remove-webpack-config": "node ./node_modules/vue-cli-plugin-nativescript-vue/lib/scripts/webpack-maintenance post", | ||
"serve:android": "npm run setup-webpack-config && tns run android --env.development", | ||
"serve:ios": "npm run setup-webpack-config && tns run ios --env.development", | ||
"serve:web": "vue-cli-service serve --mode development.web", | ||
"setup-webpack-config": "node ./node_modules/vue-cli-plugin-nativescript-vue/lib/scripts/webpack-maintenance pre" | ||
}, | ||
"dependencies": { | ||
"core-js": "^3.6.5", | ||
"nativescript-vue": "^2.5.0-alpha.3", | ||
"nativescript-vue-navigator": "^0.2.0", | ||
"tns-core-modules": "^6.3.2", | ||
"vue": "^2.6.11", | ||
"vue-router": "^3.2.0", | ||
"vuex": "^3.4.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"@babel/traverse": "^7.5.5", | ||
"@vue/cli-plugin-babel": "~4.5.0", | ||
"@vue/cli-plugin-e2e-cypress": "~4.5.0", | ||
"@vue/cli-plugin-eslint": "~4.5.0", | ||
"@vue/cli-plugin-router": "~4.5.0", | ||
"@vue/cli-plugin-unit-jest": "~4.5.0", | ||
"@vue/cli-plugin-vuex": "~4.5.0", | ||
"@vue/cli-service": "~4.5.0", | ||
"@vue/eslint-config-prettier": "^6.0.0", | ||
"@vue/test-utils": "^1.0.3", | ||
"babel-eslint": "^10.1.0", | ||
"babel-loader": "^8.0.6", | ||
"eslint": "^6.7.2", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"eslint-plugin-vue": "^6.2.2", | ||
"nativescript-dev-webpack": "^1.4.0", | ||
"nativescript-vue-template-compiler": "^2.5.0-alpha.3", | ||
"nativescript-worker-loader": "~0.9.5", | ||
"node-sass": "^4.12.0", | ||
"prettier": "^1.19.1", | ||
"rimraf": "^2.6.3", | ||
"sass-loader": "^8.0.2", | ||
"string-replace-loader": "^2.2.0", | ||
"vue-cli-plugin-nativescript-vue": "^0.3.1", | ||
"vue-template-compiler": "^2.6.11" | ||
}, | ||
"nativescript": { | ||
"id": "org.advenjourney.novaturient", | ||
"tns-android": { | ||
"version": "6.3.1" | ||
}, | ||
"tns-ios": { | ||
"version": "6.3.0" | ||
} | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang=""> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> | ||
<title><%= htmlWebpackPlugin.options.title %></title> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> | ||
</noscript> | ||
<div id="app"></div> | ||
<!-- built files will be auto injected --> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<template web> | ||
<div class="w-page"> | ||
<nav> | ||
<ul class="w-navbar"> | ||
<li class="w-title" :text="navbarTitle">{{ navbarTitle }}</li> | ||
</ul> | ||
</nav> | ||
<div class="w-container"> | ||
<router-link tag="button" class="w-button" id="homeButton" to="/" | ||
>Home</router-link | ||
> | ||
<!-- alternate way to route manually and use the same method as native --> | ||
<button class="w-button" id="aboutButton" v-on:click="goToAboutPage"> | ||
About | ||
</button> | ||
<router-view /> | ||
</div> | ||
</div> | ||
</template> | ||
<template native> | ||
<Page> | ||
<ActionBar :title="navbarTitle" /> | ||
<GridLayout rows="auto, auto"> | ||
<Button text="Home" @tap="goToHomePage" row="0" /> | ||
<Button text="About" @tap="goToAboutPage" row="1" /> | ||
</GridLayout> | ||
</Page> | ||
</template> | ||
<script> | ||
const { VUE_APP_MODE } = process.env; | ||
export default { | ||
data() { | ||
return { | ||
navbarTitle: `App.vue` | ||
}; | ||
}, | ||
methods: { | ||
goToHomePage() { | ||
this.goTo("home"); | ||
}, | ||
goToAboutPage() { | ||
this.goTo("about"); | ||
}, | ||
goTo(route) { | ||
VUE_APP_MODE === "web" | ||
? this.$router.push(route) | ||
: this.$navigator.navigate(route); | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<!-- Add "scoped" attribute to limit CSS to this component only --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest | ||
xmlns:android="http://schemas.android.com/apk/res/android" package="__PACKAGE__" android:versionCode="00100" android:versionName="0.1.0"> | ||
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" /> | ||
<uses-sdk android:minSdkVersion="17" android:targetSdkVersion="__APILEVEL__" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<application android:name="com.tns.NativeScriptApplication" android:allowBackup="true" android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/AppTheme"> | ||
<activity android:name="com.tns.NativeScriptActivity" android:label="@string/title_activity_kimera" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/LaunchScreenTheme"> | ||
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" /> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name="com.tns.ErrorReportActivity" /> | ||
</application> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Add your native dependencies here: | ||
|
||
android { | ||
defaultConfig { | ||
generatedDensities = [] | ||
applicationId = "__PACKAGE__" | ||
} | ||
aaptOptions { | ||
additionalParameters "--no-version-vectors" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:gravity="fill"> | ||
<item> | ||
<bitmap android:gravity="fill" android:src="@drawable/background" /> | ||
</item> | ||
<item> | ||
<bitmap android:gravity="center" android:src="@drawable/logo" /> | ||
</item> | ||
</layer-list> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ns_accent">#3d5afe</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">novaturient</string> | ||
<string name="title_activity_kimera">novaturient</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<!-- Application theme --> | ||
<style name="AppTheme" parent="AppThemeBase"> | ||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item> | ||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item> | ||
</style> | ||
|
||
<!-- Default style for DatePicker - in spinner mode --> | ||
<style name="SpinnerDatePicker" parent="android:Widget.Material.Light.DatePicker"> | ||
<item name="android:datePickerMode">spinner</item> | ||
</style> | ||
|
||
<!-- Default style for TimePicker - in spinner mode --> | ||
<style name="SpinnerTimePicker" parent="android:Widget.Material.Light.TimePicker"> | ||
<item name="android:timePickerMode">spinner</item> | ||
</style> | ||
|
||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase"> | ||
<item name="android:elevation">4dp</item> | ||
</style> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ns_primary">#F5F5F5</color> | ||
<color name="ns_primaryDark">#757575</color> | ||
<color name="ns_accent">#33B5E5</color> | ||
<color name="ns_blue">#272734</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">novaturient</string> | ||
<string name="title_activity_kimera">novaturient</string> | ||
</resources> |
Oops, something went wrong.