Skip to content

Commit 8c9f74c

Browse files
Merge pull request #64 from codersforcauses/ts-upgrade
Ts upgrade
2 parents 7275320 + d3326bb commit 8c9f74c

File tree

94 files changed

+5781
-5224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+5781
-5224
lines changed

.eslintrc.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@ module.exports = {
55
node: true
66
},
77
parserOptions: {
8-
parser: 'babel-eslint'
8+
parser: '@babel/eslint-parser',
9+
requireConfigFile: false
910
},
10-
extends: [
11-
'@nuxtjs',
12-
'prettier',
13-
'prettier/vue',
14-
'plugin:prettier/recommended',
15-
'plugin:nuxt/recommended'
16-
],
17-
plugins: ['prettier'],
11+
extends: ['@nuxtjs', 'plugin:nuxt/recommended', 'prettier'],
12+
plugins: [],
1813
// add your custom rules here
1914
rules: {}
2015
}

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,3 @@ sw.*
9090
*.swp
9191

9292
.vscode
93-
94-
.vercel
95-
96-
dist

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/common.sh

Whitespace-only changes.

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
. "$(dirname "$0")/common.sh"
4+
5+
yarn lint-staged

.nowignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
"singleQuote": true,
44
"trailingComma": "none",
55
"bracketSpacing": true
6-
76
}

README.md

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,69 @@
1-
# blog-guides
1+
# Blog-Guides
22

33
## Build Setup
44

55
```bash
66
# install dependencies
7-
$ yarn
7+
$ yarn install
88

99
# serve with hot reload at localhost:3000
1010
$ yarn dev
1111

12-
# build for production
12+
# build for production and launch server
1313
$ yarn build
14+
$ yarn start
1415

1516
# generate static project
1617
$ yarn export
1718
```
19+
20+
For detailed explanation on how things work, check out the [documentation](https://nuxtjs.org).
21+
22+
## Special Directories
23+
24+
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.
25+
26+
### `assets`
27+
28+
The assets directory contains your uncompiled assets such as Stylus or Sass files, images, or fonts.
29+
30+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/assets).
31+
32+
### `components`
33+
34+
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.
35+
36+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/components).
37+
38+
### `layouts`
39+
40+
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.
41+
42+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/layouts).
43+
44+
45+
### `pages`
46+
47+
This directory contains your application views and routes. Nuxt will read all the `*.vue` files inside this directory and setup Vue Router automatically.
48+
49+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/get-started/routing).
50+
51+
### `plugins`
52+
53+
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`.
54+
55+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/plugins).
56+
57+
### `static`
58+
59+
This directory contains your static files. Each file inside this directory is mapped to `/`.
60+
61+
Example: `/static/robots.txt` is mapped as `/robots.txt`.
62+
63+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/static).
64+
65+
### `store`
66+
67+
This directory contains your Vuex store files. Creating a file in this directory automatically activates Vuex.
68+
69+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/store).

assets/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

assets/css/code.css

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
pre code.hljs {
2+
display: block;
3+
overflow-x: auto;
4+
padding: 2rem 1rem 1rem;
5+
}
6+
.hljs {
7+
color: #24292e;
8+
background: #f3f3f3;
9+
}
10+
.dark .hljs {
11+
color: #c9d1d9;
12+
background: #181818;
13+
}
14+
.hljs-doctag,
15+
.hljs-keyword,
16+
.hljs-meta .hljs-keyword,
17+
.hljs-template-tag,
18+
.hljs-template-variable,
19+
.hljs-type,
20+
.hljs-variable.language_ {
21+
color: #d73a49;
22+
}
23+
.dark .hljs-doctag,
24+
.dark .hljs-keyword,
25+
.dark .hljs-meta .hljs-keyword,
26+
.dark .hljs-template-tag,
27+
.dark .hljs-template-variable,
28+
.dark .hljs-type,
29+
.dark .hljs-variable.language_ {
30+
color: #ff7b72;
31+
}
32+
.hljs-title,
33+
.hljs-title.class_,
34+
.hljs-title.class_.inherited__,
35+
.hljs-title.function_ {
36+
color: #6f42c1;
37+
}
38+
.dark .hljs-title,
39+
.dark .hljs-title.class_,
40+
.dark .hljs-title.class_.inherited__,
41+
.dark .hljs-title.function_ {
42+
color: #d2a8ff;
43+
}
44+
.hljs-attr,
45+
.hljs-attribute,
46+
.hljs-literal,
47+
.hljs-meta,
48+
.hljs-number,
49+
.hljs-operator,
50+
.hljs-selector-attr,
51+
.hljs-selector-class,
52+
.hljs-selector-id,
53+
.hljs-variable {
54+
color: #005cc5;
55+
}
56+
.dark .hljs-attr,
57+
.dark .hljs-attribute,
58+
.dark .hljs-literal,
59+
.dark .hljs-meta,
60+
.dark .hljs-number,
61+
.dark .hljs-operator,
62+
.dark .hljs-selector-attr,
63+
.dark .hljs-selector-class,
64+
.dark .hljs-selector-id,
65+
.dark .hljs-variable {
66+
color: #79c0ff;
67+
}
68+
.hljs-meta .hljs-string,
69+
.hljs-regexp,
70+
.hljs-string {
71+
color: #032f62;
72+
}
73+
.dark .hljs-meta .hljs-string,
74+
.dark .hljs-regexp,
75+
.dark .hljs-string {
76+
color: #a5d6ff;
77+
}
78+
.hljs-built_in,
79+
.hljs-symbol {
80+
color: #e36209;
81+
}
82+
.dark .hljs-built_in,
83+
.dark .hljs-symbol {
84+
color: #ffa657;
85+
}
86+
.hljs-code,
87+
.hljs-comment,
88+
.hljs-formula {
89+
color: #6a737d;
90+
}
91+
.dark .hljs-code,
92+
.dark .hljs-comment,
93+
.dark .hljs-formula {
94+
color: #8b949e;
95+
}
96+
.hljs-name,
97+
.hljs-quote,
98+
.hljs-selector-pseudo,
99+
.hljs-selector-tag {
100+
color: #22863a;
101+
}
102+
.dark .hljs-name,
103+
.dark .hljs-quote,
104+
.dark .hljs-selector-pseudo,
105+
.dark .hljs-selector-tag {
106+
color: #7ee787;
107+
}
108+
.hljs-subst {
109+
color: #24292e;
110+
}
111+
.dark .hljs-subst {
112+
color: #c9d1d9;
113+
}
114+
.hljs-section {
115+
color: #005cc5;
116+
font-weight: 700;
117+
}
118+
.dark .hljs-section {
119+
color: #1f6feb;
120+
}
121+
.hljs-bullet {
122+
color: #735c0f;
123+
}
124+
.dark .hljs-bullet {
125+
color: #f2cc60;
126+
}
127+
.hljs-emphasis {
128+
color: #24292e;
129+
font-style: italic;
130+
}
131+
.dark .hljs-emphasis {
132+
color: #c9d1d9;
133+
}
134+
.hljs-strong {
135+
color: #24292e;
136+
font-weight: 700;
137+
}
138+
.dark .hljs-strong {
139+
color: #c9d1d9;
140+
}
141+
.hljs-addition {
142+
color: #22863a;
143+
background-color: #f0fff4;
144+
}
145+
.dark .hljs-addition {
146+
color: #aff5b4;
147+
background-color: #033a16;
148+
}
149+
.hljs-deletion {
150+
color: #b31d28;
151+
background-color: #ffeef0;
152+
}
153+
.dark .hljs-deletion {
154+
color: #ffdcd7;
155+
background-color: #67060c;
156+
}

0 commit comments

Comments
 (0)