'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:
Guz
2022-01-19 16:58:55 -03:00
parent d9b26816f0
commit e3efc2df91
14 changed files with 32748 additions and 32753 deletions

View File

@@ -11,5 +11,7 @@ module.exports = {
],
plugins: [],
// add your custom rules here
rules: {},
}
rules: {
quotes: [2, 'single'],
},
};

23
.github/README.md vendored Normal file
View 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).

View File

@@ -43,6 +43,7 @@ build/Release
# Dependency directories
node_modules/
jspm_packages/
package-lock.json
# TypeScript v1 declaration files
typings/
@@ -94,3 +95,9 @@ sw.*
# Vim swap files
*.swp
# Vercel
.vercel
.vercel_build_output
.vercel

22
LICENSE Normal file
View 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.

View File

@@ -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).

View File

@@ -16,9 +16,7 @@ export default {
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [
'~/assets/styles/global.scss',
],
css: ['~/assets/styles/global.scss'],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [],
@@ -33,14 +31,13 @@ export default {
// https://go.nuxtjs.dev/stylelint
'@nuxtjs/stylelint-module',
'@nuxtjs/color-mode',
'@nuxt/image',
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
'@nuxtjs/pwa',
'@nuxtjs/color-mode',
'@nuxtjs/pwa'
],
// PWA module configuration: https://go.nuxtjs.dev/pwa
@@ -53,9 +50,9 @@ export default {
image: {
screens: {
ToTodayLogoLg: 250,
}
},
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {},
}
};

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "ToToday",
"version": "1.0.0",
"version": "0.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "ToToday",
"version": "1.0.0",
"version": "0.1.0",
"dependencies": {
"@nuxtjs/pwa": "^3.3.5",
"core-js": "^3.20.3",

View File

@@ -1,12 +1,12 @@
{
"name": "ToToday",
"version": "1.0.0",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"build": "nuxt build && nuxt generate",
"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:style": "stylelint \"**/*.{css,scss,sass,html,vue}\" --ignore-path .gitignore",
"lint:prettier": "prettier --check .",

View File

@@ -8,14 +8,14 @@ body {
height: 100vh;
width: 100vw;
transition: background-color .3s;
transition: background-color 0.3s;
font-family: $main-font;
}
* {
transition: all .3s;
transition: color .01s;
transition: all 0.3s;
transition: color 0.01s;
}
.light-mode body {

View File

@@ -7,7 +7,7 @@
"
>
<IconMoon v-if="$colorMode.preference !== 'dark'" />
<IconSun v-else/>
<IconSun v-else />
</button>
</div>
</template>

View File

@@ -1,6 +1,16 @@
<template>
<picture>
<nuxt-img 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"/>
<nuxt-img
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>
</template>

View File

@@ -7,5 +7,7 @@ module.exports = {
],
// add your custom config here
// https://stylelint.io/user-guide/configuration
rules: {},
}
rules: {
string: 'single',
},
};