Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from subspace/alpha
Browse files Browse the repository at this point in the history
Alpha first build
  • Loading branch information
jdheeter committed Aug 13, 2021
2 parents fef2c8e + cc1912c commit 7712c00
Show file tree
Hide file tree
Showing 59 changed files with 3,094 additions and 1,101 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,40 @@

Built with Quasar + Tauri

## Prerequisites

- nodejs
- yarn
- rustc

## Install the dependencies

```bash
yarn
```

### Start the app in development mode (starts Quasar and Tauri in dev mode)
### Start the app in development mode

Terminal 1

```bash
yarn dev
yarn quasar dev
```

Terminal 2

```bash
yarn tauri dev
```

### Build the app for production (Builds Quasar and Tauri)

```bash
yarn build
```

### Access Tauri or Quasar specific commands

```bash
yarn quasar --help
yarn tauri --help
Expand Down
32 changes: 19 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,49 @@
{
"name": "subspace-desktop",
"version": "0.0.1",
"version": "0.0.2",
"private": true,
"description": "Simple desktop app for Subspace farmers.",
"author": "",
"scripts": {
"quasar": "quasar",
"tauri": "tauri",
"dev": "quasar dev& tauri dev&",
"build": "quasar build --modern && tauri build -v"
"dev": "quasar dev",
"build": "quasar build -m pwa && tauri build -v"
},
"dependencies": {
"@quasar/extras": "^1.0.0",
"@tauri-apps/api": "^1.0.0-beta.5",
"@tsmx/human-readable": "^1.0.6",
"apexcharts": "^3.27.3",
"bcryptjs": "^2.4.3",
"core-js": "^3.6.5",
"quasar": "^2.0.0"
"javascript-time-ago": "^2.3.8",
"quasar": "^2.0.0",
"vue3-apexcharts": "^1.4.1"
},
"devDependencies": {
"@quasar/app": "^3.0.0",
"@tauri-apps/cli": "^1.0.0-beta.6",
"@types/": "tsmx/human-readable",
"@types/bcryptjs": "^2.4.2",
"@types/node": "^16.3.3",
"@types/vue": "^2.0.0",
"pug": "^3.0.2",
"pug-plain-loader": "^1.1.0",
"vue-cli-plugin-tauri": "~1.0.0-beta.3"
"strip-ansi": "=3.0.1",
"typescript": "^4.3.5",
"workbox-webpack-plugin": "^6.1.5"
},
"browserslist": [
"last 10 Chrome versions",
"last 10 Firefox versions",
"last 4 Edge versions",
"last 7 Safari versions",
"last 8 Android versions",
"last 8 ChromeAndroid versions",
"last 8 FirefoxAndroid versions",
"last 10 iOS versions",
"last 5 Opera versions"
"last 6 Edge versions",
"last 7 Safari versions"
],
"engines": {
"node": ">= 12.22.1",
"npm": ">= 6.13.4",
"yarn": ">= 1.21.1"
},
"productName": "subspace"
}
}
Binary file removed public/SubspaceIntro.png
Binary file not shown.
Binary file added public/icons/apple-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/apple-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/apple-icon-167x167.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/apple-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/icon-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/icon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/icon-384x384.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/icon-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/ms-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions quasar.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = configure(function (ctx) {
// --> boot files are part of "main.js"
// https://v2.quasar.dev/quasar-cli/boot-files
boot: [
'init.ts'
],

// https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
Expand All @@ -43,8 +44,10 @@ module.exports = configure(function (ctx) {

// Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
build: {
vueRouterMode: 'history', // available values: 'hash', 'history'

vueRouterMode: 'hash', // available values: 'hash', 'history'
extendWebpack(config) {
config.resolve.fallback = { crypto: false }
},
// transpile: false,

// Add dependencies for transpiling with Babel (Array of string/regex)
Expand Down Expand Up @@ -98,7 +101,7 @@ module.exports = configure(function (ctx) {

// animations: 'all', // --- includes all animations
// https://v2.quasar.dev/options/animations
animations: [],
animations: 'all',

// https://v2.quasar.dev/quasar-cli/developing-ssr/configuring-ssr
ssr: {
Expand Down
10 changes: 10 additions & 0 deletions src-pwa/custom-service-worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* This file (which will be your service worker)
* is picked up by the build system ONLY if
* quasar.conf > pwa > workboxPluginMode is set to "InjectManifest"
*/

import { precacheAndRoute } from 'workbox-precaching'

// Use with precache injection
precacheAndRoute(self.__WB_MANIFEST)
10 changes: 10 additions & 0 deletions src-pwa/pwa-flag.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* eslint-disable */
// THIS FEATURE-FLAG FILE IS AUTOGENERATED,
// REMOVAL OR CHANGES WILL CAUSE RELATED TYPES TO STOP WORKING
import "quasar/dist/types/feature-flag";

declare module "quasar/dist/types/feature-flag" {
interface QuasarFeatureFlags {
pwa: true;
}
}
41 changes: 41 additions & 0 deletions src-pwa/register-service-worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { register } from 'register-service-worker'

// The ready(), registered(), cached(), updatefound() and updated()
// events passes a ServiceWorkerRegistration instance in their arguments.
// ServiceWorkerRegistration: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration

register(process.env.SERVICE_WORKER_FILE, {
// The registrationOptions object will be passed as the second argument
// to ServiceWorkerContainer.register()
// https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register#Parameter

// registrationOptions: { scope: './' },

ready (/* registration */) {
// console.log('Service worker is active.')
},

registered (/* registration */) {
// console.log('Service worker has been registered.')
},

cached (/* registration */) {
// console.log('Content has been cached for offline use.')
},

updatefound (/* registration */) {
// console.log('New content is downloading.')
},

updated (/* registration */) {
// console.log('New content is available; please refresh.')
},

offline () {
// console.log('No internet connection found. App is running in offline mode.')
},

error (/* err */) {
// console.error('Error during service worker registration:', err)
}
})
Loading

0 comments on commit 7712c00

Please sign in to comment.