'tiny' fix: repository info, code style, and bugs.
- Updated repository information like README, License, and app's version to 0.1.0 for better versioning; - (Possibly) fixed PWA and page theme features; - Fixed linting code format.
This commit is contained in:
@@ -11,5 +11,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
plugins: [],
|
plugins: [],
|
||||||
// add your custom rules here
|
// add your custom rules here
|
||||||
rules: {},
|
rules: {
|
||||||
}
|
quotes: [2, 'single'],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|||||||
23
.github/README.md
vendored
Normal file
23
.github/README.md
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<div align='center'>
|
||||||
|
<h1>Lored / ToToday.app</h1>
|
||||||
|
<p>A single page web app to help yours day-to-day tasks</p>
|
||||||
|
<p><i>Built with <a href="https://nuxtjs.org" target="_blank">Nuxt.js</a></i></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
## Build Setup
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# install dependencies
|
||||||
|
$ npm install
|
||||||
|
|
||||||
|
# serve with hot reload at localhost:3000
|
||||||
|
$ npm run dev
|
||||||
|
|
||||||
|
# build for production and launch server
|
||||||
|
$ npm run build:start
|
||||||
|
|
||||||
|
# generate static project
|
||||||
|
$ npm run generate
|
||||||
|
```
|
||||||
|
|
||||||
|
For a detailed explanation of Nuxt.js, check the [documentation](https://nuxtjs.org).
|
||||||
@@ -43,6 +43,7 @@ build/Release
|
|||||||
# Dependency directories
|
# Dependency directories
|
||||||
node_modules/
|
node_modules/
|
||||||
jspm_packages/
|
jspm_packages/
|
||||||
|
package-lock.json
|
||||||
|
|
||||||
# TypeScript v1 declaration files
|
# TypeScript v1 declaration files
|
||||||
typings/
|
typings/
|
||||||
@@ -94,3 +95,9 @@ sw.*
|
|||||||
|
|
||||||
# Vim swap files
|
# Vim swap files
|
||||||
*.swp
|
*.swp
|
||||||
|
|
||||||
|
# Vercel
|
||||||
|
.vercel
|
||||||
|
.vercel_build_output
|
||||||
|
|
||||||
|
.vercel
|
||||||
|
|||||||
22
LICENSE
Normal file
22
LICENSE
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2022 Project Lored
|
||||||
|
Copyright (c) 2022 Gustavo "Guz" L. de Mello
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
68
README.md
68
README.md
@@ -1,68 +0,0 @@
|
|||||||
# ToToday
|
|
||||||
|
|
||||||
## Build Setup
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# install dependencies
|
|
||||||
$ npm install
|
|
||||||
|
|
||||||
# serve with hot reload at localhost:3000
|
|
||||||
$ npm run dev
|
|
||||||
|
|
||||||
# build for production and launch server
|
|
||||||
$ npm run build
|
|
||||||
$ npm run start
|
|
||||||
|
|
||||||
# generate static project
|
|
||||||
$ npm run generate
|
|
||||||
```
|
|
||||||
|
|
||||||
For detailed explanation on how things work, check out the [documentation](https://nuxtjs.org).
|
|
||||||
|
|
||||||
## Special Directories
|
|
||||||
|
|
||||||
You can create the following extra directories, some of which have special behaviors. Only `pages` is required; you can delete them if you don't want to use their functionality.
|
|
||||||
|
|
||||||
### `assets`
|
|
||||||
|
|
||||||
The assets directory contains your uncompiled assets such as Stylus or Sass files, images, or fonts.
|
|
||||||
|
|
||||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/assets).
|
|
||||||
|
|
||||||
### `components`
|
|
||||||
|
|
||||||
The components directory contains your Vue.js components. Components make up the different parts of your page and can be reused and imported into your pages, layouts and even other components.
|
|
||||||
|
|
||||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/components).
|
|
||||||
|
|
||||||
### `layouts`
|
|
||||||
|
|
||||||
Layouts are a great help when you want to change the look and feel of your Nuxt app, whether you want to include a sidebar or have distinct layouts for mobile and desktop.
|
|
||||||
|
|
||||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/layouts).
|
|
||||||
|
|
||||||
### `pages`
|
|
||||||
|
|
||||||
This directory contains your application views and routes. Nuxt will read all the `*.vue` files inside this directory and setup Vue Router automatically.
|
|
||||||
|
|
||||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/get-started/routing).
|
|
||||||
|
|
||||||
### `plugins`
|
|
||||||
|
|
||||||
The plugins directory contains JavaScript plugins that you want to run before instantiating the root Vue.js Application. This is the place to add Vue plugins and to inject functions or constants. Every time you need to use `Vue.use()`, you should create a file in `plugins/` and add its path to plugins in `nuxt.config.js`.
|
|
||||||
|
|
||||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/plugins).
|
|
||||||
|
|
||||||
### `static`
|
|
||||||
|
|
||||||
This directory contains your static files. Each file inside this directory is mapped to `/`.
|
|
||||||
|
|
||||||
Example: `/static/robots.txt` is mapped as `/robots.txt`.
|
|
||||||
|
|
||||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/static).
|
|
||||||
|
|
||||||
### `store`
|
|
||||||
|
|
||||||
This directory contains your Vuex store files. Creating a file in this directory automatically activates Vuex.
|
|
||||||
|
|
||||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/store).
|
|
||||||
@@ -16,9 +16,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Global CSS: https://go.nuxtjs.dev/config-css
|
// Global CSS: https://go.nuxtjs.dev/config-css
|
||||||
css: [
|
css: ['~/assets/styles/global.scss'],
|
||||||
'~/assets/styles/global.scss',
|
|
||||||
],
|
|
||||||
|
|
||||||
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
||||||
plugins: [],
|
plugins: [],
|
||||||
@@ -33,14 +31,13 @@ export default {
|
|||||||
// https://go.nuxtjs.dev/stylelint
|
// https://go.nuxtjs.dev/stylelint
|
||||||
'@nuxtjs/stylelint-module',
|
'@nuxtjs/stylelint-module',
|
||||||
|
|
||||||
'@nuxtjs/color-mode',
|
|
||||||
|
|
||||||
'@nuxt/image',
|
'@nuxt/image',
|
||||||
],
|
],
|
||||||
|
|
||||||
// Modules: https://go.nuxtjs.dev/config-modules
|
// Modules: https://go.nuxtjs.dev/config-modules
|
||||||
modules: [
|
modules: [
|
||||||
'@nuxtjs/pwa',
|
'@nuxtjs/color-mode',
|
||||||
|
'@nuxtjs/pwa'
|
||||||
],
|
],
|
||||||
|
|
||||||
// PWA module configuration: https://go.nuxtjs.dev/pwa
|
// PWA module configuration: https://go.nuxtjs.dev/pwa
|
||||||
@@ -53,9 +50,9 @@ export default {
|
|||||||
image: {
|
image: {
|
||||||
screens: {
|
screens: {
|
||||||
ToTodayLogoLg: 250,
|
ToTodayLogoLg: 250,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// Build Configuration: https://go.nuxtjs.dev/config-build
|
// Build Configuration: https://go.nuxtjs.dev/config-build
|
||||||
build: {},
|
build: {},
|
||||||
}
|
};
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ToToday",
|
"name": "ToToday",
|
||||||
"version": "1.0.0",
|
"version": "0.1.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ToToday",
|
"name": "ToToday",
|
||||||
"version": "1.0.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxtjs/pwa": "^3.3.5",
|
"@nuxtjs/pwa": "^3.3.5",
|
||||||
"core-js": "^3.20.3",
|
"core-js": "^3.20.3",
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ToToday",
|
"name": "ToToday",
|
||||||
"version": "1.0.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
"build": "nuxt build",
|
"build": "nuxt build && nuxt generate",
|
||||||
"start": "nuxt start",
|
"start": "nuxt start",
|
||||||
"generate": "nuxt generate",
|
"build:start": "npm run build && npm run start",
|
||||||
"lint:js": "eslint --ext \".js,.ts,.vue\" --ignore-path .gitignore .",
|
"lint:js": "eslint --ext \".js,.ts,.vue\" --ignore-path .gitignore .",
|
||||||
"lint:style": "stylelint \"**/*.{css,scss,sass,html,vue}\" --ignore-path .gitignore",
|
"lint:style": "stylelint \"**/*.{css,scss,sass,html,vue}\" --ignore-path .gitignore",
|
||||||
"lint:prettier": "prettier --check .",
|
"lint:prettier": "prettier --check .",
|
||||||
|
|||||||
@@ -8,14 +8,14 @@ body {
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
|
|
||||||
transition: background-color .3s;
|
transition: background-color 0.3s;
|
||||||
|
|
||||||
font-family: $main-font;
|
font-family: $main-font;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
transition: all .3s;
|
transition: all 0.3s;
|
||||||
transition: color .01s;
|
transition: color 0.01s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.light-mode body {
|
.light-mode body {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<IconMoon v-if="$colorMode.preference !== 'dark'" />
|
<IconMoon v-if="$colorMode.preference !== 'dark'" />
|
||||||
<IconSun v-else/>
|
<IconSun v-else />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,6 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<picture>
|
<picture>
|
||||||
<nuxt-img v-if="$colorMode.value !== 'dark'" src="/images/ToToday-Dark.svg" alt="ToToday logo" width="250"/>
|
<nuxt-img
|
||||||
<nuxt-img v-else src="/images/ToToday-Light.svg" alt="ToToday logo" width="250"/>
|
v-if="$colorMode.value != 'dark'"
|
||||||
|
src="/images/ToToday-Dark.svg"
|
||||||
|
alt="ToToday logo"
|
||||||
|
width="250"
|
||||||
|
/>
|
||||||
|
<nuxt-img
|
||||||
|
v-else
|
||||||
|
src="/images/ToToday-Light.svg"
|
||||||
|
alt="ToToday logo"
|
||||||
|
width="250"
|
||||||
|
/>
|
||||||
</picture>
|
</picture>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -7,5 +7,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
// add your custom config here
|
// add your custom config here
|
||||||
// https://stylelint.io/user-guide/configuration
|
// https://stylelint.io/user-guide/configuration
|
||||||
rules: {},
|
rules: {
|
||||||
}
|
string: 'single',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user