- DIRECTION
- 🚨 Rules
- 🚨 always use the "VSCode" to developing this codebase.
- 🚨 always use the "Angular Commit Format Reference Sheet" to write commit messages.
- 🚨 in typescript and javascript code use esm format export/import instead of any amd code.
- 🚨 in typescript and code refactoring change from amd to esm where possible.
- 🚨 Never add extra comments in the package.json file.
- 🚨 Rules
- ⚡ Refactor
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
Show hidden characters
/** also see https://www.totaltypescript.com/tsconfig-cheat-sheet */ | |
{ | |
"$schema": "https://json.schemastore.org/tsconfig", | |
"display": "Strictest", | |
"compilerOptions": { | |
"allowJs": true, | |
"allowSyntheticDefaultImports": true, | |
"allowUmdGlobalAccess": true, | |
"allowUnreachableCode": true, | |
"allowUnusedLabels": false, |
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
import antfu from '@antfu/eslint-config' | |
import react from 'eslint-plugin-react' | |
import reactHooks from 'eslint-plugin-react-hooks' | |
import valtio from 'eslint-plugin-valtio' | |
import jest from 'eslint-plugin-jest' | |
import jestDom from 'eslint-plugin-jest-dom' | |
import testingLibrary from 'eslint-plugin-testing-library' | |
import nextjs from '@next/eslint-plugin-next' | |
import ts from '@typescript-eslint/eslint-plugin' | |
import tsParser from '@typescript-eslint/parser' |
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
const twstocks = { | |
'705848':'禾昌元富96購01', | |
'705869':'穩懋元大96購01', | |
'707157':'同致兆豐96購01', | |
'707158':'威剛兆豐96購01', | |
'707159':'網龍兆豐96購01', | |
'707161':'元太國票96購01', | |
'707162':'旺矽國票96購01', | |
'707163':'信昌電國票96購01', | |
'707164':'宣德國票96購01', |
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
vbell off | |
autodetach on | |
startup_message off | |
shell -$SHELL | |
allpartial off | |
defc1 off | |
defencoding utf8 | |
bind b encoding big5 utf8 | |
bind u encoding utf8 utf8 |
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
!function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n?n:e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t){!function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=K.type(e);return"function"===n||K.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function r(e,t,n){if(K.isFunction(t))return K.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return K.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(at.test(t))retu |
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
// Generated by CoffeeScript 1.7.1 | |
(function() { | |
var getRandomName, getRandomNumber, getRandomStr, iAltEmail, imembernameeasi; | |
getRandomNumber = function(max, min) { | |
var range; | |
if (max == null) { | |
max = 25; | |
} | |
if (min == null) { |