This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
11,371 additions
and
278 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,27 +7,27 @@ | |
"author": "EEparker <[email protected]>", | ||
"private": true, | ||
"scripts": { | ||
"dev": "quasar dev", | ||
"serve": "quasar dev", | ||
"build": "quasar build", | ||
"build:pwa": "quasar build -m pwa" | ||
}, | ||
"dependencies": { | ||
"@quasar/extras": "^1.3.2", | ||
"axios": "^0.19.0", | ||
"quasar": "^1.1.6", | ||
"quasar": "^1.2.0", | ||
"vue-class-component": "^7.1.0", | ||
"vue-property-decorator": "^8.2.2", | ||
"vuex": "^3.1.1", | ||
"vuex-class": "^0.3.2", | ||
"vuex-module-decorators": "^0.10.1" | ||
}, | ||
"devDependencies": { | ||
"@quasar/app": "^1.1.2", | ||
"@types/node": "^12.7.8", | ||
"@quasar/app": "^1.2.0", | ||
"@types/node": "^12.7.12", | ||
"pug": "^2.0.4", | ||
"pug-plain-loader": "^1.0.0", | ||
"ts-loader": "^6.2.0", | ||
"typescript": "^3.6.3" | ||
"typescript": "^3.6.4" | ||
}, | ||
"engines": { | ||
"node": ">= 8.9.0", | ||
|
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
6 changes: 6 additions & 0 deletions
6
samples/QuasarCliSample/ClientApp/src/models/IWeatherForecast.ts
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,6 @@ | ||
export interface IWeatherForecast { | ||
temperatureC: number; | ||
temperatureF: number; | ||
summary: string; | ||
date: Date; | ||
} |
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 |
---|---|---|
@@ -1,14 +1,36 @@ | ||
<template lang="pug"> | ||
q-page.flex.flex-center | ||
img(alt='Quasar logo' src='~assets/quasar-logo-full.svg') | ||
q-table(title="Weather" :data="forecasts" :columns="forecastCols") | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Vue} from 'vue-property-decorator'; | ||
import { date } from 'quasar' | ||
import { IWeatherForecast } from '../models/IWeatherForecast'; | ||
import axios from 'axios'; | ||
@Component | ||
export default class PageIndex extends Vue { | ||
private forecasts: IWeatherForecast[] = [{ summary: 'No data.' } as IWeatherForecast]; | ||
private forecastCols: any[] = [ | ||
{ name: 'Summary', label: 'Summary', field: (row: IWeatherForecast) => row.summary }, | ||
{ name: 'F', label: 'F', field: (row: IWeatherForecast) => row.temperatureF }, | ||
{ name: 'C', label: 'C', field: (row: IWeatherForecast) => row.temperatureC }, | ||
{ | ||
name: 'Date', | ||
label: 'Date', | ||
field: (row: IWeatherForecast) => row.date, | ||
format: (val: Date) => `${date.formatDate(val, 'YYYY/MM/DD HH:mm:ss')}` | ||
} | ||
]; | ||
public async mounted() { | ||
try { | ||
this.forecasts = (await axios.get('api/weatherforecast')).data; | ||
} catch { | ||
this.forecasts = [{ summary: 'No data.' } as IWeatherForecast]; | ||
} | ||
} | ||
} | ||
</script> | ||
|
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
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,2 @@ | ||
> 1% | ||
last 2 versions |
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,21 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
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,24 @@ | ||
# clientapp | ||
|
||
## Project setup | ||
``` | ||
npm install | ||
``` | ||
|
||
### Compiles and hot-reloads for development | ||
``` | ||
npm run serve | ||
``` | ||
|
||
### Compiles and minifies for production | ||
``` | ||
npm run build | ||
``` | ||
|
||
### Lints and fixes files | ||
``` | ||
npm run lint | ||
``` | ||
|
||
### Customize configuration | ||
See [Configuration Reference](https://cli.vuejs.org/config/). |
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 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/app' | ||
] | ||
} |
Oops, something went wrong.