From a38fabd17b78f0fb5e44a6648f1e488a8b22bec8 Mon Sep 17 00:00:00 2001 From: rigor789 Date: Mon, 27 Jun 2022 21:48:49 +0000 Subject: [PATCH 01/55] Update javascript to output generated at 0403b1a --- .stackblitzrc | 4 ++++ app/app-root.xml | 2 ++ app/app.css | 6 ++++++ app/app.js | 3 +++ app/main-page.js | 6 ++++++ app/main-page.xml | 8 ++++++++ app/main-view-model.js | 25 +++++++++++++++++++++++++ nativescript.config.ts | 11 +++++++++++ package.json | 14 ++++++++++++++ webpack.config.js | 10 ++++++++++ 10 files changed, 89 insertions(+) create mode 100644 .stackblitzrc create mode 100644 app/app-root.xml create mode 100644 app/app.css create mode 100644 app/app.js create mode 100644 app/main-page.js create mode 100644 app/main-page.xml create mode 100644 app/main-view-model.js create mode 100644 nativescript.config.ts create mode 100644 package.json create mode 100644 webpack.config.js diff --git a/.stackblitzrc b/.stackblitzrc new file mode 100644 index 0000000..24b9da3 --- /dev/null +++ b/.stackblitzrc @@ -0,0 +1,4 @@ +{ + "installDependencies": true, + "startCommand": "./node_modules/.bin/preview-cli --config=https://preview.nativescript.org/api/config" +} diff --git a/app/app-root.xml b/app/app-root.xml new file mode 100644 index 0000000..54e70d9 --- /dev/null +++ b/app/app-root.xml @@ -0,0 +1,2 @@ + + diff --git a/app/app.css b/app/app.css new file mode 100644 index 0000000..e3d2c4a --- /dev/null +++ b/app/app.css @@ -0,0 +1,6 @@ +@import '@nativescript/theme/css/core.css'; +@import '@nativescript/theme/css/default.css'; + +Button.-primary { + font-size: 18; +} diff --git a/app/app.js b/app/app.js new file mode 100644 index 0000000..a4c5c52 --- /dev/null +++ b/app/app.js @@ -0,0 +1,3 @@ +import { Application } from '@nativescript/core'; + +Application.run({ moduleName: 'app-root' }); diff --git a/app/main-page.js b/app/main-page.js new file mode 100644 index 0000000..8624dce --- /dev/null +++ b/app/main-page.js @@ -0,0 +1,6 @@ +import { createViewModel } from './main-view-model'; + +export function onNavigatingTo(args) { + const page = args.object; + page.bindingContext = createViewModel(); +} diff --git a/app/main-page.xml b/app/main-page.xml new file mode 100644 index 0000000..90bbc90 --- /dev/null +++ b/app/main-page.xml @@ -0,0 +1,8 @@ + + + +