This repository was archived by the owner on Jun 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
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
0 parents
commit da2c7a1
Showing
40 changed files
with
7,711 additions
and
0 deletions.
There are no files selected for viewing
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,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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,9 @@ | ||
/dist | ||
/src-bex/www | ||
/src-capacitor | ||
/src-cordova | ||
/.quasar | ||
/node_modules | ||
.eslintrc.js | ||
babel.config.js | ||
/src-ssr |
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,87 @@ | ||
const { resolve } = require('path'); | ||
module.exports = { | ||
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy | ||
// This option interrupts the configuration hierarchy at this file | ||
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos) | ||
root: true, | ||
|
||
// https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser | ||
// Must use parserOptions instead of "parser" to allow vue-eslint-parser to keep working | ||
// `parser: 'vue-eslint-parser'` is already included with any 'plugin:vue/**' config and should be omitted | ||
parserOptions: { | ||
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration | ||
// https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#eslint | ||
// Needed to make the parser take into account 'vue' files | ||
extraFileExtensions: ['.vue'], | ||
parser: '@typescript-eslint/parser', | ||
project: resolve(__dirname, './tsconfig.json'), | ||
tsconfigRootDir: __dirname, | ||
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features | ||
sourceType: 'module' // Allows for the use of imports | ||
}, | ||
|
||
env: { | ||
browser: true | ||
}, | ||
|
||
// Rules order is important, please avoid shuffling them | ||
extends: [ | ||
// Base ESLint recommended rules | ||
// 'eslint:recommended', | ||
|
||
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#usage | ||
// ESLint typescript rules | ||
'plugin:@typescript-eslint/recommended', | ||
// consider disabling this class of rules if linting takes too long | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
|
||
// Uncomment any of the lines below to choose desired strictness, | ||
// but leave only one uncommented! | ||
// See https://eslint.vuejs.org/rules/#available-rules | ||
'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention) | ||
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability) | ||
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead) | ||
|
||
// https://github.com/prettier/eslint-config-prettier#installation | ||
// usage with Prettier, provided by 'eslint-config-prettier'. | ||
'prettier' | ||
], | ||
|
||
plugins: [ | ||
// required to apply rules which need type information | ||
'@typescript-eslint', | ||
|
||
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files | ||
// required to lint *.vue files | ||
'vue', | ||
|
||
// https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674 | ||
// Prettier has not been included as plugin to avoid performance impact | ||
// add it as an extension for your IDE | ||
], | ||
|
||
globals: { | ||
ga: 'readonly', // Google Analytics | ||
cordova: 'readonly', | ||
__statics: 'readonly', | ||
__QUASAR_SSR__: 'readonly', | ||
__QUASAR_SSR_SERVER__: 'readonly', | ||
__QUASAR_SSR_CLIENT__: 'readonly', | ||
__QUASAR_SSR_PWA__: 'readonly', | ||
process: 'readonly', | ||
Capacitor: 'readonly', | ||
chrome: 'readonly' | ||
}, | ||
|
||
// add your custom rules here | ||
rules: { | ||
'prefer-promise-reject-errors': 'off', | ||
|
||
// TypeScript | ||
quotes: ['warn', 'single', { avoidEscape: true }], | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
|
||
// allow debugger during development only | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' | ||
} | ||
} |
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,33 @@ | ||
.DS_Store | ||
.thumbs.db | ||
node_modules | ||
|
||
# Quasar core related directories | ||
.quasar | ||
/dist | ||
|
||
# Cordova related directories and files | ||
/src-cordova/node_modules | ||
/src-cordova/platforms | ||
/src-cordova/plugins | ||
/src-cordova/www | ||
|
||
# Capacitor related directories and files | ||
/src-capacitor/www | ||
/src-capacitor/node_modules | ||
|
||
# BEX related directories and files | ||
/src-bex/www | ||
/src-bex/js/core | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln |
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,8 @@ | ||
// https://github.com/michael-ciniawsky/postcss-load-config | ||
|
||
module.exports = { | ||
plugins: [ | ||
// to edit target browsers: use "browserslist" field in package.json | ||
require('autoprefixer') | ||
] | ||
} |
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,4 @@ | ||
{ | ||
"singleQuote": true, | ||
"semi": true | ||
} |
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,15 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"editorconfig.editorconfig", | ||
"johnsoncodehk.volar", | ||
"wayou.vscode-todo-highlight" | ||
], | ||
"unwantedRecommendations": [ | ||
"octref.vetur", | ||
"hookyqr.beautify", | ||
"dbaeumer.jshint", | ||
"ms-vscode.vscode-typescript-tslint-plugin" | ||
] | ||
} |
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,11 @@ | ||
{ | ||
"editor.bracketPairColorization.enabled": true, | ||
"editor.guides.bracketPairs": true, | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.codeActionsOnSave": [ | ||
"source.fixAll.eslint" | ||
], | ||
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"], | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
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,31 @@ | ||
# Hikari Anime Image Search (hikari-search) | ||
|
||
A collection of anime image search engine, based on Cloudflare Pages Function. | ||
|
||
## Install the dependencies | ||
```bash | ||
yarn | ||
``` | ||
|
||
### Start the app in development mode (hot-code reloading, error reporting, etc.) | ||
```bash | ||
quasar dev | ||
``` | ||
|
||
### Lint the files | ||
```bash | ||
yarn lint | ||
``` | ||
|
||
### Format the files | ||
```bash | ||
yarn format | ||
``` | ||
|
||
### Build the app for production | ||
```bash | ||
quasar build | ||
``` | ||
|
||
### Customize the configuration | ||
See [Configuring quasar.conf.js](https://quasar.dev/quasar-cli/quasar-conf-js). |
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,15 @@ | ||
/* eslint-env node */ | ||
|
||
module.exports = api => { | ||
return { | ||
presets: [ | ||
[ | ||
'@quasar/babel-preset-app', | ||
api.caller(caller => caller && caller.target === 'node') | ||
? { targets: { node: 'current' } } | ||
: {} | ||
] | ||
] | ||
} | ||
} | ||
|
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,52 @@ | ||
{ | ||
"name": "hikari-search", | ||
"version": "0.0.1", | ||
"description": "A collection of anime image search engine, based on Cloudflare Pages Function.", | ||
"productName": "Hikari Anime Image Search", | ||
"author": "Mix", | ||
"private": true, | ||
"scripts": { | ||
"lint": "eslint --ext .js,.ts,.vue ./", | ||
"format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore", | ||
"test": "echo \"No test specified\" && exit 0" | ||
}, | ||
"dependencies": { | ||
"@quasar/extras": "^1.0.0", | ||
"axios": "^0.21.1", | ||
"cheerio": "^1.0.0-rc.10", | ||
"core-js": "^3.6.5", | ||
"quasar": "^2.0.0", | ||
"vue": "^3.0.0", | ||
"vue-i18n": "^9.0.0", | ||
"vue-router": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/eslint-parser": "^7.13.14", | ||
"@cloudflare/workers-types": "^3.4.0", | ||
"@quasar/app": "^3.0.0", | ||
"@types/node": "^12.20.21", | ||
"@typescript-eslint/eslint-plugin": "^5.10.0", | ||
"@typescript-eslint/parser": "^5.10.0", | ||
"eslint": "^7.14.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-vue": "^7.0.0", | ||
"prettier": "^2.5.1", | ||
"wrangler": "^0.0.17" | ||
}, | ||
"browserslist": [ | ||
"last 10 Chrome versions", | ||
"last 10 Firefox versions", | ||
"last 4 Edge versions", | ||
"last 7 Safari versions", | ||
"last 8 Android versions", | ||
"last 8 ChromeAndroid versions", | ||
"last 8 FirefoxAndroid versions", | ||
"last 10 iOS versions", | ||
"last 5 Opera versions" | ||
], | ||
"engines": { | ||
"node": ">= 12.22.1", | ||
"npm": ">= 6.13.4", | ||
"yarn": ">= 1.21.1" | ||
} | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.