@alodi/site 0.3.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/site.js ADDED
@@ -0,0 +1,107 @@
1
+ var _SiteConfig;
2
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ export var SITE = {
9
+ JILI_291: '291jili',
10
+ SUPER_291: 'super291',
11
+ JILI_646: '646jili',
12
+ LODI_291: 'lodi291',
13
+ TOP_646: 'top646',
14
+ JILI_80: '80jili',
15
+ PH_646: 'ph646',
16
+ ACE_291: 'ace291',
17
+ HOT_646: 'hot646',
18
+ LODI_646: 'lodi646',
19
+ LODI_GAME: 'lodigame',
20
+ LOL_646: 'lol646',
21
+ LODI_777: 'lodi777',
22
+ YDG_777: 'ydg777',
23
+ WASP: 'wasp',
24
+ PG_82: '82pg',
25
+ PG_91: '91pg',
26
+ ZAPP_SPIN: 'zappspin',
27
+ WASP_SPIN: 'waspspin',
28
+ HAA_555: 'haa555',
29
+ TRADING: 'trading',
30
+ VANG_WIN: 'vangwin',
31
+ SORTE_WIN: 'sortewin'
32
+ };
33
+ export var SiteConfig = (_SiteConfig = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_SiteConfig, SITE.JILI_291, {
34
+ name: '291JILI',
35
+ country: 'PHL'
36
+ }), SITE.SUPER_291, {
37
+ name: 'super291',
38
+ country: 'PHL'
39
+ }), SITE.JILI_646, {
40
+ name: '646JILI',
41
+ country: 'PHL'
42
+ }), SITE.LODI_291, {
43
+ name: 'Lodi291',
44
+ country: 'PHL'
45
+ }), SITE.TOP_646, {
46
+ name: 'TOP646',
47
+ country: 'PHL'
48
+ }), SITE.JILI_80, {
49
+ name: '80JILI',
50
+ country: 'PHL'
51
+ }), SITE.PH_646, {
52
+ name: 'PH646',
53
+ country: 'PHL'
54
+ }), SITE.ACE_291, {
55
+ name: 'Ace291',
56
+ country: 'PHL'
57
+ }), SITE.HOT_646, {
58
+ name: 'HOT646',
59
+ country: 'PHL'
60
+ }), SITE.LODI_646, {
61
+ name: 'Lodi646',
62
+ country: 'PHL'
63
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_SiteConfig, SITE.LODI_GAME, {
64
+ name: 'lodigame',
65
+ country: 'PHL'
66
+ }), SITE.LOL_646, {
67
+ name: 'lol646',
68
+ country: 'PHL'
69
+ }), SITE.LODI_777, {
70
+ name: 'Lodi777',
71
+ country: 'PHL'
72
+ }), SITE.YDG_777, {
73
+ name: 'ydg777',
74
+ country: 'PHL'
75
+ }), SITE.WASP, {
76
+ name: 'WASPBET',
77
+ country: 'THA'
78
+ }), SITE.PG_82, {
79
+ name: 'AURA88',
80
+ country: 'THA'
81
+ }), SITE.PG_91, {
82
+ name: 'AURA69',
83
+ country: 'THA'
84
+ }), SITE.ZAPP_SPIN, {
85
+ name: 'WASP.WIN',
86
+ country: 'THA'
87
+ }), SITE.WASP_SPIN, {
88
+ name: 'WASP SPIN',
89
+ country: 'THA'
90
+ }), SITE.HAA_555, {
91
+ name: 'HAA555',
92
+ country: 'THA'
93
+ }), _defineProperty(_defineProperty(_defineProperty(_SiteConfig, SITE.TRADING, {
94
+ name: 'COINAX',
95
+ country: 'THA'
96
+ }), SITE.VANG_WIN, {
97
+ name: 'VANGWIN',
98
+ country: 'VNM'
99
+ }), SITE.SORTE_WIN, {
100
+ name: 'SO99',
101
+ country: 'BRA'
102
+ }));
103
+ export var getSiteConfig = function getSiteConfig(site) {
104
+ return _objectSpread({
105
+ site: site
106
+ }, SiteConfig[site]);
107
+ };
package/package.json CHANGED
@@ -1,119 +1,90 @@
1
1
  {
2
2
  "name": "@alodi/site",
3
- "version": "0.3.1",
3
+ "version": "1.1.0",
4
4
  "description": "alodi site",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git@git.lodiops.com:bag_web/lodi-site.git"
7
+ "url": "git@git.lodiops.com:bag_web/lodi-figma.git",
8
+ "directory": "packages/site"
8
9
  },
9
10
  "license": "MIT",
10
11
  "exports": {
11
12
  ".": {
12
- "import": {
13
- "types": "./dist/index.d.ts",
13
+ "types": {
14
+ "import": "./dist/index.d.ts",
15
+ "require": "./dist/cjs/index.d.ts",
16
+ "default": "./dist/index.d.ts"
17
+ },
18
+ "browser": {
19
+ "import": "./dist/index.js",
14
20
  "default": "./dist/index.js"
15
21
  },
16
- "require": {
17
- "types": "./dist/cjs/index.d.ts",
18
- "default": "./dist/cjs/index.js"
19
- }
22
+ "import": "./dist/index.js",
23
+ "require": "./dist/cjs/index.js",
24
+ "default": "./dist/index.js"
20
25
  },
21
- "./data": {
22
- "import": {
23
- "types": "./dist/data.d.ts",
24
- "default": "./dist/data.js"
26
+ "./argv": {
27
+ "types": {
28
+ "import": "./dist/argv.d.ts",
29
+ "require": "./dist/cjs/argv.d.ts",
30
+ "default": "./dist/argv.d.ts"
25
31
  },
26
- "require": {
27
- "types": "./dist/cjs/data.d.ts",
28
- "default": "./dist/cjs/data.js"
32
+ "node": {
33
+ "import": "./dist/argv.js",
34
+ "require": "./dist/cjs/argv.js"
29
35
  }
30
36
  },
31
- "./argv": {
32
- "import": {
33
- "types": "./dist/argv.d.ts",
34
- "default": "./dist/argv.js"
37
+ "./env": {
38
+ "types": {
39
+ "import": "./dist/env.d.ts",
40
+ "require": "./dist/cjs/env.d.ts",
41
+ "default": "./dist/env.d.ts"
35
42
  },
36
- "require": {
37
- "types": "./dist/cjs/argv.d.ts",
38
- "default": "./dist/cjs/argv.js"
43
+ "node": {
44
+ "import": "./dist/env.js",
45
+ "require": "./dist/cjs/env.js"
39
46
  }
40
- },
41
- "./*": {
42
- "import": "./dist/*",
43
- "require": "./dist/cjs/*"
44
47
  }
45
48
  },
46
- "main": "dist/cjs/index.js",
47
- "module": "dist/index.js",
48
- "types": "dist/index.d.ts",
49
+ "main": "./dist/cjs/index.js",
50
+ "module": "./dist/index.js",
51
+ "types": "./dist/index.d.ts",
52
+ "browser": "./dist/index.js",
49
53
  "files": [
50
54
  "dist",
51
55
  "CHANGELOG.md"
52
56
  ],
53
- "scripts": {
54
- "build": "father build",
55
- "build:watch": "father dev",
56
- "dev": "dumi dev",
57
- "docs:build": "dumi build",
58
- "docs:preview": "dumi preview",
59
- "doctor": "father doctor",
60
- "lint": "npm run lint:es && npm run lint:css",
61
- "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
62
- "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
63
- "prepare": "husky install && dumi setup",
64
- "prepublishOnly": "father doctor && npm run build",
65
- "release": "release-it",
66
- "release:major": "echo '发布主版本' && release-it major",
67
- "release:minor": "echo '发布小版本' && release-it minor",
68
- "release:patch": "echo '发布补丁版本' && release-it patch",
69
- "release:pre": "echo '发布pre版本(--preReleaseId=beta|alpha|rc)' && release-it prerelease --preReleaseId=beta",
70
- "start": "npm run dev"
71
- },
72
- "commitlint": {
73
- "extends": [
74
- "@commitlint/config-conventional"
75
- ]
76
- },
77
- "lint-staged": {
78
- "*.{md,json}": [
79
- "prettier --write --no-error-on-unmatched-pattern"
80
- ],
81
- "*.{css,less}": [
82
- "stylelint --fix",
83
- "prettier --write"
84
- ],
85
- "*.{js,jsx}": [
86
- "eslint --fix",
87
- "prettier --write"
88
- ],
89
- "*.{ts,tsx}": [
90
- "eslint --fix",
91
- "prettier --parser=typescript --write"
92
- ]
93
- },
94
57
  "devDependencies": {
95
- "@commitlint/cli": "^17.1.2",
96
- "@commitlint/config-conventional": "^17.1.0",
97
- "@release-it/conventional-changelog": "^10.0.1",
98
- "@umijs/lint": "^4.0.0",
99
- "dumi": "^2.4.13",
100
- "eslint": "^8.23.0",
58
+ "eslint": "^9.39.0",
101
59
  "father": "^4.1.0",
102
- "husky": "^8.0.1",
103
- "lint-staged": "^13.0.3",
104
- "prettier": "^2.7.1",
105
- "prettier-plugin-organize-imports": "^3.0.0",
106
- "prettier-plugin-packagejson": "^2.2.18",
107
- "release-it": "^19.0.4",
108
- "stylelint": "^14.9.1"
60
+ "stylelint": "^16.14.0"
109
61
  },
110
62
  "peerDependencies": {
111
63
  "@types/node": "^22.13.4",
112
64
  "@types/yargs": "^17.0.33",
113
65
  "yargs": "^17.7.2"
114
66
  },
67
+ "peerDependenciesMeta": {
68
+ "@types/node": {
69
+ "optional": true
70
+ },
71
+ "@types/yargs": {
72
+ "optional": true
73
+ },
74
+ "yargs": {
75
+ "optional": true
76
+ }
77
+ },
115
78
  "publishConfig": {
116
79
  "access": "public"
117
80
  },
118
- "authors": []
119
- }
81
+ "authors": [],
82
+ "scripts": {
83
+ "build": "father build",
84
+ "build:watch": "father dev",
85
+ "doctor": "father doctor",
86
+ "lint": "npm run lint:es && npm run lint:css",
87
+ "lint:css": "stylelint --allow-empty-input \"{src,test}/**/*.{css,less}\"",
88
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\""
89
+ }
90
+ }
package/README.md DELETED
@@ -1,43 +0,0 @@
1
- # @alodi/site
2
-
3
- [![NPM version](https://img.shields.io/npm/v/@alodi/site.svg?style=flat)](https://npmjs.org/package/@alodi/site)
4
- [![NPM downloads](http://img.shields.io/npm/dm/@alodi/site.svg?style=flat)](https://npmjs.org/package/@alodi/site)
5
-
6
- alodi site
7
-
8
- ## Usage
9
-
10
- TODO
11
-
12
- ## Options
13
-
14
- TODO
15
-
16
- ## Development
17
-
18
- ```bash
19
- # install dependencies
20
- $ pnpm install
21
-
22
- # develop library by docs demo
23
- $ pnpm start
24
-
25
- # build library source code
26
- $ pnpm run build
27
-
28
- # build library source code in watch mode
29
- $ pnpm run build:watch
30
-
31
- # build docs
32
- $ pnpm run docs:build
33
-
34
- # Locally preview the production build.
35
- $ pnpm run docs:preview
36
-
37
- # check your project for potential problems
38
- $ pnpm run doctor
39
- ```
40
-
41
- ## LICENSE
42
-
43
- MIT
@@ -1,27 +0,0 @@
1
- import { SITE } from './index';
2
- export declare const DefaultSupportEmail = "lodics001@outlook.com";
3
- export type SiteItem = {
4
- name: string;
5
- /**meta og:* twitter:* */
6
- seo: {
7
- /**og:url/twitter:url */
8
- url: string;
9
- /**og:site_name/twitter:card */
10
- site_name: string;
11
- };
12
- text: {
13
- /**用在网页标题 291JILI */
14
- title: string;
15
- /**用在首页文案 */
16
- site: string;
17
- domain: string;
18
- /**291JILI */
19
- facebookMessenger: string;
20
- /**291JILI */
21
- instagram: string;
22
- telegram: string;
23
- /**目前用在help文案 */
24
- support_email: string;
25
- };
26
- };
27
- export declare const SiteData: Record<(typeof SITE)[keyof typeof SITE], SiteItem>;