File tree Expand file tree Collapse file tree 11 files changed +6440
-0
lines changed Expand file tree Collapse file tree 11 files changed +6440
-0
lines changed Original file line number Diff line number Diff line change 1+ # editorconfig.org
2+ root = true
3+
4+ [* ]
5+ indent_style = space
6+ indent_size = 2
7+ end_of_line = LF
8+ charset = utf-8
9+ trim_trailing_whitespace = true
10+ insert_final_newline = true
11+
12+ [* .md ]
13+ trim_trailing_whitespace = false
14+
15+ [* .svg ]
16+ indent_size = 4
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ root : true ,
3+ env : {
4+ browser : true ,
5+ node : true ,
6+ } ,
7+ parserOptions : {
8+ parser : 'babel-eslint' ,
9+ } ,
10+ extends : [
11+ '@nuxtjs' ,
12+ 'prettier' ,
13+ 'prettier/vue' ,
14+ 'plugin:prettier/recommended' ,
15+ 'plugin:nuxt/recommended' ,
16+ ] ,
17+ plugins : [ 'prettier' ] ,
18+ rules : { } ,
19+ globals : {
20+ WxLogin : true ,
21+ } ,
22+ }
Original file line number Diff line number Diff line change 1+ # # GITATTRIBUTES FOR WEB PROJECTS
2+ #
3+ # These settings are for any web project.
4+ #
5+ # Details per file setting:
6+ # text These files should be normalized (i.e. convert CRLF to LF).
7+ # binary These files are binary and should be left untouched.
8+ #
9+ # Note that binary is a macro for -text -diff.
10+ # #####################################################################
11+
12+ # Auto detect
13+ # # Handle line endings automatically for files detected as
14+ # # text and leave all files detected as binary untouched.
15+ # # This will handle all files NOT defined below.
16+ * text =auto
17+
18+ # Source code
19+ * .bash text eol =lf
20+ * .bat text eol =crlf
21+ * .cmd text eol =crlf
22+ * .coffee text
23+ * .css text
24+ * .htm text diff =html
25+ * .html text diff =html
26+ * .inc text
27+ * .ini text
28+ * .js text eol =lf
29+ * .json text
30+ * .jsx text
31+ * .less text
32+ * .ls text
33+ * .map text - diff
34+ * .od text
35+ * .onlydata text
36+ * .php text diff =php
37+ * .pl text
38+ * .ps1 text eol =crlf
39+ * .py text diff =python
40+ * .rb text diff =ruby
41+ * .sass text
42+ * .scm text
43+ * .scss text diff =css eol =lf
44+ * .sh text eol =lf
45+ * .sql text
46+ * .styl text
47+ * .tag text
48+ * .ts text
49+ * .tsx text
50+ * .xml text
51+ * .xhtml text diff =html
52+
53+ # Docker
54+ * .dockerignore text
55+ Dockerfile text
56+
57+ # Documentation
58+ * .ipynb text
59+ * .markdown text
60+ * .md text
61+ * .mdwn text
62+ * .mdown text
63+ * .mkd text
64+ * .mkdn text
65+ * .mdtxt text
66+ * .mdtext text
67+ * .txt text
68+ AUTHORS text
69+ CHANGELOG text
70+ CHANGES text
71+ CONTRIBUTING text
72+ COPYING text
73+ copyright text
74+ * COPYRIGHT * text
75+ INSTALL text
76+ license text
77+ LICENSE text
78+ NEWS text
79+ readme text
80+ * README * text
81+ TODO text
82+
83+ # Templates
84+ * .dot text
85+ * .ejs text
86+ * .haml text
87+ * .handlebars text
88+ * .hbs text
89+ * .hbt text
90+ * .jade text
91+ * .latte text
92+ * .mustache text
93+ * .njk text
94+ * .phtml text
95+ * .tmpl text
96+ * .tpl text
97+ * .twig text
98+ * .vue text eol =lf
99+
100+ # Linters
101+ .csslintrc text
102+ .eslintrc text
103+ .htmlhintrc text
104+ .jscsrc text
105+ .jshintrc text
106+ .jshintignore text
107+ .stylelintrc text
108+
109+ # Configs
110+ * .bowerrc text
111+ * .cnf text
112+ * .conf text
113+ * .config text
114+ .babelrc text
115+ .browserslistrc text
116+ .editorconfig text
117+ .env text
118+ .gitattributes text
119+ .gitconfig text
120+ .htaccess text
121+ * .lock text - diff
122+ package-lock.json text - diff
123+ * .npmignore text
124+ * .yaml text
125+ * .yml text
126+ browserslist text
127+ Makefile text
128+ makefile text
129+
130+ # Heroku
131+ Procfile text
132+ .slugignore text
133+
134+ # Graphics
135+ * .ai binary
136+ * .bmp binary
137+ * .eps binary
138+ * .gif binary
139+ * .gifv binary
140+ * .ico binary
141+ * .jng binary
142+ * .jp2 binary
143+ * .jpg binary
144+ * .jpeg binary
145+ * .jpx binary
146+ * .jxr binary
147+ * .pdf binary
148+ * .png binary
149+ * .psb binary
150+ * .psd binary
151+ # SVG treated as an asset (binary) by default.
152+ * .svg text
153+ # If you want to treat it as binary,
154+ # use the following line instead.
155+ # *.svg binary
156+ * .svgz binary
157+ * .tif binary
158+ * .tiff binary
159+ * .wbmp binary
160+ * .webp binary
161+
162+ # Audio
163+ * .kar binary
164+ * .m4a binary
165+ * .mid binary
166+ * .midi binary
167+ * .mp3 binary
168+ * .ogg binary
169+ * .ra binary
170+
171+ # Video
172+ * .3gpp binary
173+ * .3gp binary
174+ * .as binary
175+ * .asf binary
176+ * .asx binary
177+ * .fla binary
178+ * .flv binary
179+ * .m4v binary
180+ * .mng binary
181+ * .mov binary
182+ * .mp4 binary
183+ * .mpeg binary
184+ * .mpg binary
185+ * .ogv binary
186+ * .swc binary
187+ * .swf binary
188+ * .webm binary
189+
190+ # Archives
191+ * .7z binary
192+ * .gz binary
193+ * .jar binary
194+ * .rar binary
195+ * .tar binary
196+ * .zip binary
197+
198+ # Fonts
199+ * .ttf binary
200+ * .eot binary
201+ * .otf binary
202+ * .woff binary
203+ * .woff2 binary
204+
205+ # Executables
206+ * .exe binary
207+ * .pyc binary
Original file line number Diff line number Diff line change 1+ # Created by .ignore support plugin (hsz.mobi)
2+ # ## Node template
3+ # Logs
4+ logs
5+ * .log
6+ npm-debug.log *
7+ yarn-debug.log *
8+ yarn-error.log *
9+
10+ # Runtime data
11+ pids
12+ * .pid
13+ * .seed
14+ * .pid.lock
15+
16+ # Directory for instrumented libs generated by jscoverage/JSCover
17+ lib-cov
18+
19+ # Coverage directory used by tools like istanbul
20+ coverage
21+
22+ # nyc test coverage
23+ .nyc_output
24+
25+ # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+ .grunt
27+
28+ # Bower dependency directory (https://bower.io/)
29+ bower_components
30+
31+ # node-waf configuration
32+ .lock-wscript
33+
34+ # Compiled binary addons (https://nodejs.org/api/addons.html)
35+ build /Release
36+
37+ # Dependency directories
38+ node_modules /
39+ jspm_packages /
40+
41+ # TypeScript v1 declaration files
42+ typings /
43+
44+ # Optional npm cache directory
45+ .npm
46+
47+ # Optional eslint cache
48+ .eslintcache
49+
50+ # Optional REPL history
51+ .node_repl_history
52+
53+ # Output of 'npm pack'
54+ * .tgz
55+
56+ # Yarn Integrity file
57+ .yarn-integrity
58+
59+ # dotenv environment variables file
60+ .env
61+
62+ # parcel-bundler cache (https://parceljs.org/)
63+ .cache
64+
65+ # next.js build output
66+ .next
67+
68+ # nuxt.js build output
69+ .nuxt
70+
71+ # Nuxt generate
72+ dist
73+
74+ # vuepress build output
75+ .vuepress /dist
76+
77+ # Serverless directories
78+ .serverless
79+
80+ # IDE / Editor
81+ .idea
82+ .vscode /launch.json
83+ # .editorconfig
84+
85+ # Service worker
86+ sw. *
87+
88+ # Mac OSX
89+ .DS_Store
90+
91+ # Vim swap files
92+ * .swp
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ printWidth : 80 ,
3+ tabWidth : 2 ,
4+ useTabs : false ,
5+ semi : false , //
6+ singleQuote : true , //
7+ quoteProps : 'as-needed' ,
8+ trailingComma : 'all' , // for better git history
9+ bracketSpacing : true ,
10+ arrowParens : 'avoid' , // avoid (default): Omit parens when possible. Example: x => x
11+ htmlWhitespaceSensitivity : 'ignore' , // for better format
12+ endOfLine : 'lf' , // windows users: git config core.autocrlf false --global
13+ }
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ extends : [ 'stylelint-prettier/recommended' ] ,
3+ }
Original file line number Diff line number Diff line change 11# nuxt-client-width-module
2+
23A client width module for Nuxt.js.
Original file line number Diff line number Diff line change 1+ const path = require ( 'path' )
2+
3+ export default function ( moduleOptions ) {
4+ const options = { ...this . options . clientWidth , ...moduleOptions }
5+
6+ const pluginOptions = Object . assign (
7+ {
8+ tablet : 768 ,
9+ desktop : 1024 ,
10+ largeDesktop : 1440 ,
11+ } ,
12+ options ,
13+ )
14+
15+ this . addPlugin ( {
16+ src : path . resolve ( __dirname , 'plugin.template' ) ,
17+ fileName : 'plugin.client-width.client.js' ,
18+ options : pluginOptions ,
19+ ssr : false ,
20+ } )
21+ }
22+
23+ module . exports . meta = require ( '../package.json' )
You can’t perform that action at this time.
0 commit comments