@alodi/site 0.1.2 → 0.1.4

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/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ ## 0.1.4 (2025-09-16)
4
+
5
+ ##
6
+
7
+ All notable changes to this project will be documented in this file. Dates are displayed in UTC.
8
+
9
+ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
10
+
11
+ #### 0.1.4
12
+
13
+ - init [`ddd3d25`](https://nas.415150806.xyz/lodi/bag_web/commit/ddd3d259ede2507130de5c85baeeb4450f949074)
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,11 +1,43 @@
1
- # `@alodi/site`
1
+ # @alodi/site
2
2
 
3
- > TODO: description
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
4
7
 
5
8
  ## Usage
6
9
 
7
- ```
8
- const site = require('@alodi/site');
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
9
24
 
10
- // TODO: DEMONSTRATE API
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
11
39
  ```
40
+
41
+ ## LICENSE
42
+
43
+ MIT
@@ -12,7 +12,7 @@ declare const options: readonly [{
12
12
  }, {
13
13
  readonly name: "site";
14
14
  readonly describe: "指定站点";
15
- readonly choices: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "wasp" | "82pg" | "91pg" | "ydg777" | "zappspin" | "waspspin" | "haa555")[];
15
+ readonly choices: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "wasp" | "82pg" | "91pg" | "ydg777" | "zappspin" | "waspspin" | "haa555" | "vangwin" | "sortewin")[];
16
16
  readonly demandOption: true;
17
17
  }, {
18
18
  readonly name: "api";
@@ -12,7 +12,7 @@ declare const options: readonly [{
12
12
  }, {
13
13
  readonly name: "site";
14
14
  readonly describe: "指定站点";
15
- readonly choices: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "wasp" | "82pg" | "91pg" | "ydg777" | "zappspin" | "waspspin" | "haa555")[];
15
+ readonly choices: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "wasp" | "82pg" | "91pg" | "ydg777" | "zappspin" | "waspspin" | "haa555" | "vangwin" | "sortewin")[];
16
16
  readonly demandOption: true;
17
17
  }, {
18
18
  readonly name: "api";
@@ -1,4 +1,4 @@
1
- import { SiteKey } from "./index";
1
+ import { SiteKey } from './index';
2
2
  export declare const DefaultSupportEmail = "lodics001@outlook.com";
3
3
  export type SiteItem = {
4
4
  name: string;
package/dist/cjs/data.js CHANGED
@@ -345,6 +345,38 @@ var SiteData = {
345
345
  telegram: "",
346
346
  support_email: DefaultSupportEmail
347
347
  }
348
+ },
349
+ [import_index.SITE.VANG_WIN]: {
350
+ name: "VANGWIN",
351
+ seo: {
352
+ url: "https://www.vangwin.com/",
353
+ site_name: "vangwin.com"
354
+ },
355
+ text: {
356
+ title: "VANGWIN",
357
+ site: "vangwin.com",
358
+ domain: "www.vangwin.com",
359
+ facebookMessenger: "",
360
+ instagram: "",
361
+ telegram: "",
362
+ support_email: ""
363
+ }
364
+ },
365
+ [import_index.SITE.SORTE_WIN]: {
366
+ name: "SORTEWIN",
367
+ seo: {
368
+ url: "https://www.sortewin.com/",
369
+ site_name: "sortewin.com"
370
+ },
371
+ text: {
372
+ title: "SORTEWIN",
373
+ site: "sortewin.com",
374
+ domain: "www.sortewin.com",
375
+ facebookMessenger: "",
376
+ instagram: "",
377
+ telegram: "",
378
+ support_email: ""
379
+ }
348
380
  }
349
381
  };
350
382
  // Annotate the CommonJS export names for ESM import in node:
@@ -19,8 +19,10 @@ export declare const SITE: {
19
19
  readonly ZAPP_SPIN: "zappspin";
20
20
  readonly WASP_SPIN: "waspspin";
21
21
  readonly HAA_555: "haa555";
22
+ readonly VANG_WIN: "vangwin";
23
+ readonly SORTE_WIN: "sortewin";
22
24
  };
23
- export declare const SiteKeys: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "wasp" | "82pg" | "91pg" | "ydg777" | "zappspin" | "waspspin" | "haa555")[];
25
+ export declare const SiteKeys: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "wasp" | "82pg" | "91pg" | "ydg777" | "zappspin" | "waspspin" | "haa555" | "vangwin" | "sortewin")[];
24
26
  export type SiteKey = (typeof SiteKeys)[number];
25
27
  export declare const COUNTRY: {
26
28
  readonly LODI: "lodi";
@@ -31,6 +33,6 @@ export type CountryKey = (typeof CountryKeys)[number];
31
33
  export declare const NcgSiteKeys: readonly ["wasp", "82pg", "91pg", "zappspin", "waspspin", "haa555"];
32
34
  export type NcgSiteKey = (typeof NcgSiteKeys)[number];
33
35
  export declare const isNcgSite: (site: SiteKey) => site is "wasp" | "82pg" | "91pg" | "zappspin" | "waspspin" | "haa555";
34
- export declare const LodiSiteKeys: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777")[];
36
+ export declare const LodiSiteKeys: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777" | "vangwin" | "sortewin")[];
35
37
  export type LodiSiteKey = (typeof LodiSiteKeys)[number];
36
- export declare const isLodiSite: (site: SiteKey) => site is "291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777";
38
+ export declare const isLodiSite: (site: SiteKey) => site is "291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777" | "vangwin" | "sortewin";
package/dist/cjs/index.js CHANGED
@@ -49,7 +49,9 @@ var SITE = {
49
49
  YDG_777: "ydg777",
50
50
  ZAPP_SPIN: "zappspin",
51
51
  WASP_SPIN: "waspspin",
52
- HAA_555: "haa555"
52
+ HAA_555: "haa555",
53
+ VANG_WIN: "vangwin",
54
+ SORTE_WIN: "sortewin"
53
55
  };
54
56
  var SiteKeys = Object.keys(SITE).map(
55
57
  (x) => SITE[x]
@@ -1,4 +1,4 @@
1
- import { SiteKey } from "./index";
1
+ import { SiteKey } from './index';
2
2
  export declare const DefaultSupportEmail = "lodics001@outlook.com";
3
3
  export type SiteItem = {
4
4
  name: string;
@@ -305,4 +305,34 @@ export var SiteData = (_SiteData = {}, _defineProperty(_defineProperty(_definePr
305
305
  telegram: '',
306
306
  support_email: DefaultSupportEmail
307
307
  }
308
+ }), _defineProperty(_defineProperty(_SiteData, SITE.VANG_WIN, {
309
+ name: 'VANGWIN',
310
+ seo: {
311
+ url: 'https://www.vangwin.com/',
312
+ site_name: 'vangwin.com'
313
+ },
314
+ text: {
315
+ title: 'VANGWIN',
316
+ site: 'vangwin.com',
317
+ domain: 'www.vangwin.com',
318
+ facebookMessenger: '',
319
+ instagram: '',
320
+ telegram: '',
321
+ support_email: ''
322
+ }
323
+ }), SITE.SORTE_WIN, {
324
+ name: 'SORTEWIN',
325
+ seo: {
326
+ url: 'https://www.sortewin.com/',
327
+ site_name: 'sortewin.com'
328
+ },
329
+ text: {
330
+ title: 'SORTEWIN',
331
+ site: 'sortewin.com',
332
+ domain: 'www.sortewin.com',
333
+ facebookMessenger: '',
334
+ instagram: '',
335
+ telegram: '',
336
+ support_email: ''
337
+ }
308
338
  }));
@@ -19,8 +19,10 @@ export declare const SITE: {
19
19
  readonly ZAPP_SPIN: "zappspin";
20
20
  readonly WASP_SPIN: "waspspin";
21
21
  readonly HAA_555: "haa555";
22
+ readonly VANG_WIN: "vangwin";
23
+ readonly SORTE_WIN: "sortewin";
22
24
  };
23
- export declare const SiteKeys: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "wasp" | "82pg" | "91pg" | "ydg777" | "zappspin" | "waspspin" | "haa555")[];
25
+ export declare const SiteKeys: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "wasp" | "82pg" | "91pg" | "ydg777" | "zappspin" | "waspspin" | "haa555" | "vangwin" | "sortewin")[];
24
26
  export type SiteKey = (typeof SiteKeys)[number];
25
27
  export declare const COUNTRY: {
26
28
  readonly LODI: "lodi";
@@ -31,6 +33,6 @@ export type CountryKey = (typeof CountryKeys)[number];
31
33
  export declare const NcgSiteKeys: readonly ["wasp", "82pg", "91pg", "zappspin", "waspspin", "haa555"];
32
34
  export type NcgSiteKey = (typeof NcgSiteKeys)[number];
33
35
  export declare const isNcgSite: (site: SiteKey) => site is "wasp" | "82pg" | "91pg" | "zappspin" | "waspspin" | "haa555";
34
- export declare const LodiSiteKeys: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777")[];
36
+ export declare const LodiSiteKeys: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777" | "vangwin" | "sortewin")[];
35
37
  export type LodiSiteKey = (typeof LodiSiteKeys)[number];
36
- export declare const isLodiSite: (site: SiteKey) => site is "291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777";
38
+ export declare const isLodiSite: (site: SiteKey) => site is "291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777" | "vangwin" | "sortewin";
@@ -18,7 +18,9 @@ export var SITE = {
18
18
  YDG_777: 'ydg777',
19
19
  ZAPP_SPIN: 'zappspin',
20
20
  WASP_SPIN: 'waspspin',
21
- HAA_555: 'haa555'
21
+ HAA_555: 'haa555',
22
+ VANG_WIN: 'vangwin',
23
+ SORTE_WIN: 'sortewin'
22
24
  };
23
25
  export var SiteKeys = Object.keys(SITE).map(function (x) {
24
26
  return SITE[x];
package/package.json CHANGED
@@ -1,46 +1,112 @@
1
1
  {
2
2
  "name": "@alodi/site",
3
- "version": "0.1.2",
4
- "description": "lodi site",
3
+ "version": "0.1.4",
4
+ "description": "alodi site",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git@git.lodiops.com:bag_web/lodi-mono.git"
7
+ "url": "git@git.lodiops.com:bag_web/lodi-site.git"
8
8
  },
9
- "license": "ISC",
9
+ "license": "MIT",
10
10
  "exports": {
11
11
  ".": {
12
- "types": "./dist/esm/index.d.ts",
13
- "import": "./dist/esm/index.js",
14
- "require": "./dist/cjs/index.js"
12
+ "import": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ },
16
+ "require": {
17
+ "types": "./dist/cjs/index.d.ts",
18
+ "default": "./dist/cjs/index.js"
19
+ }
15
20
  },
16
21
  "./data": {
17
- "types": "./dist/esm/data.d.ts",
18
- "import": "./dist/esm/data.js",
19
- "require": "./dist/cjs/data.js"
22
+ "import": {
23
+ "types": "./dist/data.d.ts",
24
+ "default": "./dist/data.js"
25
+ },
26
+ "require": {
27
+ "types": "./dist/cjs/data.d.ts",
28
+ "default": "./dist/cjs/data.js"
29
+ }
20
30
  },
21
31
  "./argv": {
22
- "types": "./dist/esm/argv.d.ts",
23
- "import": "./dist/esm/argv.js",
24
- "require": "./dist/cjs/argv.js"
32
+ "import": {
33
+ "types": "./dist/argv.d.ts",
34
+ "default": "./dist/argv.js"
35
+ },
36
+ "require": {
37
+ "types": "./dist/cjs/argv.d.ts",
38
+ "default": "./dist/cjs/argv.js"
39
+ }
25
40
  },
26
- "./*": "./*"
27
- },
28
- "main": "dist/cjs/index.js",
29
- "module": "dist/esm/index.js",
30
- "types": "dist/esm/index.d.ts",
31
- "directories": {
32
- "lib": "lib",
33
- "test": "__tests__"
41
+ "./*": {
42
+ "import": "./dist/*",
43
+ "require": "./dist/cjs/*"
44
+ }
34
45
  },
46
+ "module": "dist/index.js",
47
+ "types": "dist/index.d.ts",
35
48
  "files": [
36
49
  "dist",
37
50
  "CHANGELOG.md"
38
51
  ],
39
52
  "scripts": {
40
53
  "build": "father build",
41
- "build:watch": "father dev"
54
+ "build:watch": "father dev",
55
+ "dev": "dumi dev",
56
+ "docs:build": "dumi build",
57
+ "docs:preview": "dumi preview",
58
+ "doctor": "father doctor",
59
+ "lint": "npm run lint:es && npm run lint:css",
60
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
61
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
62
+ "prepare": "husky install && dumi setup",
63
+ "prepublishOnly": "father doctor && npm run build",
64
+ "release": "release-it",
65
+ "release:major": "echo '发布主版本' && release-it major",
66
+ "release:minor": "echo '发布小版本' && release-it minor",
67
+ "release:patch": "echo '发布补丁版本' && release-it patch",
68
+ "release:pre": "echo '发布pre版本(--preReleaseId=beta|alpha|rc)' && release-it prerelease --preReleaseId=beta",
69
+ "start": "npm run dev"
70
+ },
71
+ "commitlint": {
72
+ "extends": [
73
+ "@commitlint/config-conventional"
74
+ ]
75
+ },
76
+ "lint-staged": {
77
+ "*.{md,json}": [
78
+ "prettier --write --no-error-on-unmatched-pattern"
79
+ ],
80
+ "*.{css,less}": [
81
+ "stylelint --fix",
82
+ "prettier --write"
83
+ ],
84
+ "*.{js,jsx}": [
85
+ "eslint --fix",
86
+ "prettier --write"
87
+ ],
88
+ "*.{ts,tsx}": [
89
+ "eslint --fix",
90
+ "prettier --parser=typescript --write"
91
+ ]
42
92
  },
43
93
  "devDependencies": {
94
+ "@commitlint/cli": "^17.1.2",
95
+ "@commitlint/config-conventional": "^17.1.0",
96
+ "@release-it/conventional-changelog": "^10.0.1",
97
+ "@umijs/lint": "^4.0.0",
98
+ "dumi": "^2.4.13",
99
+ "eslint": "^8.23.0",
100
+ "father": "^4.1.0",
101
+ "husky": "^8.0.1",
102
+ "lint-staged": "^13.0.3",
103
+ "prettier": "^2.7.1",
104
+ "prettier-plugin-organize-imports": "^3.0.0",
105
+ "prettier-plugin-packagejson": "^2.2.18",
106
+ "release-it": "^19.0.4",
107
+ "stylelint": "^14.9.1"
108
+ },
109
+ "peerDependencies": {
44
110
  "@types/node": "^22.13.4",
45
111
  "@types/yargs": "^17.0.33",
46
112
  "yargs": "^17.7.2"
@@ -48,5 +114,5 @@
48
114
  "publishConfig": {
49
115
  "access": "public"
50
116
  },
51
- "gitHead": "5d67ac53cde05a201ac22a34384f5f9f0000374f"
117
+ "authors": []
52
118
  }
File without changes