├── .idea
├── GM_script.iml
├── GitLink.xml
├── codeStyles
│ ├── Project.xml
│ └── codeStyleConfig.xml
├── deployment.xml
├── dictionaries
│ ├── AC.xml
│ └── luozhangbiao.xml
├── encodings.xml
├── git_toolbox_prj.xml
├── i18nSettings.xml
├── inspectionProfiles
│ └── Project_Default.xml
├── misc.xml
├── modules.xml
├── shelf
│ ├── Uncommitted_changes_before_Update_at_2023_6_2_17_12_[Changes]
│ │ └── shelved.patch
│ └── Uncommitted_changes_before_Update_at_2023_6_2_17_12__Changes_.xml
├── sshConfigs.xml
├── vagrant.xml
├── vcs.xml
├── webServers.xml
└── workspace.xml
├── AC-Baidu-SoGou-Google-NoRedirect.user.js
├── AC-Baidu-SoGou-Google-NoRedirect_26.99.user.js
├── AC-CSSCalc.html
├── AC-DBHighLight.user.js
├── AC-Pan-Baidu-AutoSave.js
├── AC-Panel.user.js
├── AC-Remove-KeywordsFromBaiduBing.user.js
├── AC-Taobao-Coupon.user.js
├── AC-Translate-Youdao.user.js
├── AC-UpDown-Copy.js
├── AutoHighLight.user.js
├── CSDN-AutoReply-AutoPager.js
├── GreenCloud.user.js
├── GreenCloudVPS.user.js
├── LICENSE
├── LICENSE.txt
├── Less4_1_2_fixed.js
├── Lite-AC-Baidu-SoGou-Google-NoRedirect.user.js
├── Movie.user.js
├── Once.js
├── PT.user.js
├── PVE-DialogDismiss.user.js
├── README.md
├── ResultCounter.user.js
├── VideoJumper.user.js
├── VideoJumper2.user.js
├── YoudaoGW
├── gwd-AC.js
├── gwd-add.js
├── gwd.js
├── test.js
└── test2.js
├── _config.yml
├── ac-baidu
├── .idea
│ ├── .gitignore
│ ├── ac-baidu.iml
│ ├── inspectionProfiles
│ │ └── Project_Default.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── vcs.xml
├── doc
│ ├── .eslintignore
│ ├── .eslintrc.cjs
│ ├── .gitignore
│ ├── .npmignore
│ ├── .prettierignore
│ ├── .prettierrc.cjs
│ ├── Dockerfile
│ ├── LICENSE
│ ├── README.md
│ ├── README_GIF
│ │ ├── TuiPlus__demo.gif
│ │ └── error.png
│ ├── deploy.sh
│ ├── docs
│ │ ├── .vitepress
│ │ │ ├── config.ts
│ │ │ ├── config
│ │ │ │ ├── global.ts
│ │ │ │ └── plugins.ts
│ │ │ ├── env.d.ts
│ │ │ ├── theme
│ │ │ │ ├── TIcon.vue
│ │ │ │ ├── TVHtml.vue
│ │ │ │ ├── index.css
│ │ │ │ ├── index.ts
│ │ │ │ └── useComponents.js
│ │ │ ├── utils
│ │ │ │ └── highlight.ts
│ │ │ └── vitepress
│ │ │ │ ├── components
│ │ │ │ └── vp-demo
│ │ │ │ │ ├── _old_index.vue
│ │ │ │ │ ├── index.vue
│ │ │ │ │ ├── vp-example.vue
│ │ │ │ │ └── vp-source-code.vue
│ │ │ │ ├── index.ts
│ │ │ │ ├── readme.md
│ │ │ │ └── style
│ │ │ │ ├── code.css
│ │ │ │ ├── css-vars.scss
│ │ │ │ ├── index.scss
│ │ │ │ ├── mixins.scss
│ │ │ │ └── vars.scss
│ │ ├── index.md
│ │ ├── pages
│ │ │ ├── articles
│ │ │ │ ├── history.md
│ │ │ │ ├── problems.md
│ │ │ │ └── support.md
│ │ │ ├── common
│ │ │ │ ├── base.vue
│ │ │ │ ├── isDebounce.vue
│ │ │ │ └── tip.vue
│ │ │ ├── custom
│ │ │ │ ├── baidu
│ │ │ │ │ ├── base.vue
│ │ │ │ │ └── static1.png
│ │ │ │ ├── bing
│ │ │ │ │ ├── base.vue
│ │ │ │ │ └── static1.png
│ │ │ │ ├── common
│ │ │ │ │ └── base.vue
│ │ │ │ ├── components
│ │ │ │ │ ├── AToolTipIcon.vue
│ │ │ │ │ ├── AdsModeChoose.vue
│ │ │ │ │ ├── BgChoose.vue
│ │ │ │ │ ├── BlockConfig.vue
│ │ │ │ │ ├── LessCSSComp
│ │ │ │ │ │ ├── ItemCard.vue
│ │ │ │ │ │ └── index.vue
│ │ │ │ │ └── SaveAlert.vue
│ │ │ │ ├── duckduckgo
│ │ │ │ │ ├── base.vue
│ │ │ │ │ └── static1.png
│ │ │ │ ├── google
│ │ │ │ │ ├── base.vue
│ │ │ │ │ └── static1.png
│ │ │ │ ├── haosou
│ │ │ │ │ ├── base.vue
│ │ │ │ │ └── static1.png
│ │ │ │ ├── index.md
│ │ │ │ └── utils.js
│ │ │ └── home
│ │ │ │ ├── img.png
│ │ │ │ ├── img_1.png
│ │ │ │ ├── img_2.png
│ │ │ │ ├── img_3.png
│ │ │ │ ├── img_4.png
│ │ │ │ ├── index.md
│ │ │ │ ├── start.md
│ │ │ │ └── use.md
│ │ ├── public
│ │ │ ├── acpay.html
│ │ │ ├── favicon.ico
│ │ │ ├── img
│ │ │ │ ├── error.png
│ │ │ │ └── hero.jpg
│ │ │ └── inject.js
│ │ ├── tsconfig.json
│ │ └── vite.config.ts
│ ├── global.d.ts
│ ├── index.html
│ ├── nginx.conf
│ ├── package-lock.json
│ ├── package.json
│ ├── packages
│ │ ├── adaptive-page
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ └── index.vue.d.ts
│ │ ├── button
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ └── index.vue.d.ts
│ │ ├── chart
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ └── index.vue.d.ts
│ │ ├── checkbox
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── checkbox.d.ts
│ │ │ │ ├── index.vue
│ │ │ │ └── index.vue.d.ts
│ │ ├── components.d.ts
│ │ ├── date-picker
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ └── index.vue.d.ts
│ │ ├── detail
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ ├── index.vue.d.ts
│ │ │ │ ├── renderTooltip.vue
│ │ │ │ └── renderTooltip.vue.d.ts
│ │ ├── form
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ ├── index.vue.d.ts
│ │ │ │ ├── renderComp.vue
│ │ │ │ └── renderComp.vue.d.ts
│ │ ├── index.d.ts
│ │ ├── index.ts
│ │ ├── layout-page-item
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ └── index.vue.d.ts
│ │ ├── layout-page
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ └── index.vue.d.ts
│ │ ├── module-form
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ ├── index.vue.d.ts
│ │ │ │ ├── moduleDetail.vue
│ │ │ │ ├── moduleDetail.vue.d.ts
│ │ │ │ ├── moduleForm.vue
│ │ │ │ ├── moduleForm.vue.d.ts
│ │ │ │ ├── renderTooltip.vue
│ │ │ │ └── renderTooltip.vue.d.ts
│ │ ├── query-condition
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ ├── index.vue.d.ts
│ │ │ │ ├── renderComp.vue
│ │ │ │ └── renderComp.vue.d.ts
│ │ ├── radio
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ ├── index.vue.d.ts
│ │ │ │ └── radio.d.ts
│ │ ├── select-table
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ ├── index.vue.d.ts
│ │ │ │ ├── renderCol.vue
│ │ │ │ └── renderCol.vue.d.ts
│ │ ├── select
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ └── index.vue.d.ts
│ │ ├── step-wizard
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── fixBtn.vue
│ │ │ │ ├── fixBtn.vue.d.ts
│ │ │ │ ├── index.vue
│ │ │ │ └── index.vue.d.ts
│ │ ├── table
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── ColumnSet.vue
│ │ │ │ ├── ColumnSet.vue.d.ts
│ │ │ │ ├── TTableColumn.vue
│ │ │ │ ├── TTableColumn.vue.d.ts
│ │ │ │ ├── index.vue
│ │ │ │ ├── index.vue.d.ts
│ │ │ │ ├── renderCol.vue
│ │ │ │ ├── renderCol.vue.d.ts
│ │ │ │ ├── renderHeader.vue
│ │ │ │ ├── renderHeader.vue.d.ts
│ │ │ │ ├── singleEditCell.vue
│ │ │ │ └── singleEditCell.vue.d.ts
│ │ ├── tabs
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ └── index.vue.d.ts
│ │ ├── timer-btn
│ │ │ ├── index.d.ts
│ │ │ ├── index.ts
│ │ │ └── src
│ │ │ │ ├── index.vue
│ │ │ │ └── index.vue.d.ts
│ │ ├── utils
│ │ │ ├── directives
│ │ │ │ └── click-outside
│ │ │ │ │ ├── index.d.ts
│ │ │ │ │ └── index.ts
│ │ │ ├── index.d.ts
│ │ │ └── index.ts
│ │ ├── withInstall.d.ts
│ │ └── withInstall.ts
│ ├── pnpm-lock.yaml
│ ├── public
│ │ ├── favicon.ico
│ │ ├── weixin.jpg
│ │ └── wocwin.jpg
│ ├── rebuild.sh
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── fastapi
│ ├── .dockerignore
│ ├── Dockerfile
│ ├── docker-compose.yml
│ ├── main.py
│ ├── rebuild.sh
│ └── requirements.txt
└── node_modules
│ ├── .yarn-integrity
│ ├── @rollup
│ └── pluginutils
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── dist
│ │ ├── cjs
│ │ │ └── index.js
│ │ └── es
│ │ │ ├── index.js
│ │ │ └── package.json
│ │ ├── package.json
│ │ └── types
│ │ └── index.d.ts
│ ├── @types
│ └── estree
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── flow.d.ts
│ │ ├── index.d.ts
│ │ └── package.json
│ ├── estree-walker
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── dist
│ │ ├── esm
│ │ │ ├── estree-walker.js
│ │ │ └── package.json
│ │ └── umd
│ │ │ └── estree-walker.js
│ ├── package.json
│ ├── src
│ │ ├── async.js
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── sync.js
│ │ └── walker.js
│ └── types
│ │ ├── async.d.ts
│ │ ├── index.d.ts
│ │ ├── sync.d.ts
│ │ ├── tsconfig.tsbuildinfo
│ │ └── walker.d.ts
│ ├── picomatch
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ ├── lib
│ │ ├── constants.js
│ │ ├── parse.js
│ │ ├── picomatch.js
│ │ ├── scan.js
│ │ └── utils.js
│ └── package.json
│ ├── tar-mini
│ ├── LICENSE
│ ├── README.md
│ ├── dist
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ └── index.mjs
│ └── package.json
│ └── vite-plugin-compression2
│ ├── LICENSE
│ ├── README.md
│ ├── dist
│ ├── index.d.ts
│ ├── index.js
│ └── index.mjs
│ └── package.json
├── docker-compose.yml
├── gwd-AC.js
├── help.md
├── images
├── GM_1.png
├── GM_2.png
├── TM_1.jpg
├── TM_2.jpg
└── head.jpg
├── jslib
├── Lib_MyAPI.js
├── MVVM.js
└── TimerCorn.js
├── newcss
├── .htaccess
├── .user.ini
├── 404.html
├── BgAutoFit.less
├── HuYanStyle.less
├── HuaHua-ACDrakMode.less
├── baidu.gif
├── baidu.png
├── baiduCommonStyle.less
├── baiduLiteStyle.css
├── baiduLiteStyle.less
├── baiduOnePageStyle.less
├── baiduTwoPageStyle.less
├── bingCommonStyle.less
├── bingOnePageStyle.less
├── bingTwoPageStyle.less
├── dogeCommonStyle.less
├── dogeOnePageStyle.less
├── dogeTwoPageStyle.less
├── duckCommonStyle.less
├── duckOnePageStyle.less
├── duckTwoPageStyle.less
├── googleCommonStyle.less
├── googleOnePageStyle.less
├── googleTwoPageStyle.less
├── haosouCommonStyle.less
├── haosouOnePageStyle.less
├── haosouTwoPageStyle.less
├── index.html
├── sogouCommonStyle.css
├── sogouOnePageStyle.css
├── sogouTwoPageStyle.css
├── sogoukey.html
└── sogoukey.php
├── notepad
├── Notepad.java
├── Notepad.php
├── Notepad.py
├── Notepad2.html
├── Notepad2.js
├── Notepad3.html
├── __init__.py
├── morton2XYZ.html
├── notepad.css
├── notepad2.css
└── notepad2.sh
├── rebuild.sh
├── select2_pinyin.js
├── shell
├── acssl.png
├── actcp.sh
├── qb_auto_rclone.sh
└── tmp.sh
├── temp
├── AC-UpDown-Copy.user.js
├── SearchBlock.user.js
└── win0168.user.js
├── test.html
├── test.js
├── test2.js
├── todo.md
├── work.md
└── youdaoGWZS.user.js
/.idea/GM_script.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/GitLink.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/codeStyles/codeStyleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/.idea/deployment.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/.idea/dictionaries/AC.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/.idea/dictionaries/luozhangbiao.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/.idea/git_toolbox_prj.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/.idea/i18nSettings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/inspectionProfiles/Project_Default.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/shelf/Uncommitted_changes_before_Update_at_2023_6_2_17_12__Changes_.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/.idea/sshConfigs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/vagrant.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.idea/webServers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/AC-Pan-Baidu-AutoSave.js:
--------------------------------------------------------------------------------
1 | // ==UserScript==
2 | // @name AC-自动转存百度网盘分享
3 | // @namespace moe.jixun.baidu.auto.save
4 | // @version 0.5
5 | // @description 自動轉存當前文件至上次轉存路徑。Modified from Jixun:https://greasyfork.org/zh-CN/scripts/19864
6 | // @author Jixun & modified by AC
7 | // @include /https\:\/\/(pan|yun)\.baidu\.com\/s\/[\w\d]{6}/
8 | // @include /http?://(pan|yun).baidu.com/share/link*/
9 | // @note V0.5 新增部分百度云分享链接yun.baidu.com的分享地址的支持
10 | // @note V0.4 modified from Jixun: 添加现在常见的百度分享地址,修改“保存到网盘”文字为“设置保存路径”
11 | // @grant none
12 | // @run-at document-end
13 | // @license MIT
14 | // ==/UserScript==
15 |
16 | (function() {
17 | 'use strict';
18 | var errors = {
19 | 0: '成功',
20 | 5: '自己的文件',
21 | 12: '已经保存过了',
22 | 111: '另一保存任务进行中',
23 | '-33': '需要会员 (?)',
24 | 120: '需要会员 (?)',
25 | 130: '需要超级会员 (?)'
26 | };
27 |
28 | (function (tip, c) {
29 | var key = yunData.MYNAME.replace(/@/g, "") + "_transfer_save_path";
30 | var _recent_path = localStorage.getItem(key);
31 | if (!_recent_path) _recent_path = '/';
32 | else _recent_path = _recent_path.replace(/\?\d+/, '');
33 |
34 | var $ = require("base:widget/libs/jquery-1.12.4.js");
35 | $(".g-button[title='保存到网盘'] .text").html("设置保存路径")
36 | $.ajax({
37 | type: 'POST',
38 | url: '/share/transfer?shareid=' + yunData.SHARE_ID + '&from=' + yunData.SHARE_UK,
39 | data: {
40 | filelist: JSON.stringify(yunData.FILEINFO.map(function(f){ return f.path; })),
41 | path: _recent_path
42 | },
43 | dataType: 'json',
44 | success: function (data) {
45 | var raw = typeof data == 'string' ? $.parseJSON(data) : data;
46 | var err = data.errno;
47 |
48 | var errMsg = '';
49 | if (err in errors) {
50 | errMsg += errors[err] + ' (' + err + ')';
51 | } else {
52 | errMsg += '未知状态 (' + err + ')';
53 | }
54 |
55 | var msg = '保存至: ' + _recent_path + ', 状态: ' + errMsg;
56 | document.title = errMsg + ' - ' + document.title;
57 |
58 | tip.hide();
59 | tip.show({
60 | mode: err === 0 ? 'success' : 'caution',
61 | msg: msg,
62 | hasClose: true,
63 | autoClose: false,
64 | vipType: 'svip'
65 | });
66 | }
67 | });
68 |
69 | tip.show({
70 | mode: 'loading',
71 | msg: "正在转存文件,请稍后...",
72 | hasClose: false,
73 | autoClose: false
74 | });
75 | })(
76 | /*tip: */require("system-core:system/uiService/tip/tip.js")
77 | );
78 | })();
--------------------------------------------------------------------------------
/AC-Panel.user.js:
--------------------------------------------------------------------------------
1 | // ==UserScript==
2 | // @name AC-baidu: 啊猫-操作面板
3 | // @description 用于快速操作和显示的一个面板
4 | // @author AC
5 | // @create 2024-12-12
6 | // @lastmodified 2024-03-07
7 | // @version 1.0
8 | // @include https://zhibo2.90dao.com/
9 | // @namespace gm.com
10 | // @copyright 2024, AC
11 | // @note 2024.12.12-V1.0 初始化第一版
12 | // @run-at document-end
13 | // @grant GM_setClipboard
14 | // @require https://update.greasyfork.org/scripts/503097/1424938/VueEntry.js
15 | // ==/UserScript==
16 |
17 | ~(function(){
18 | const insertId = 'custom-ac-app'
19 | document.body.insertAdjacentHTML('beforeend', `
20 |
21 |
22 | {{ state.message }}
23 |
24 |
显示数据:{{ state.count }}
25 |
26 |
27 | `);
28 |
29 | const { reactive, createApp } = VueEntry
30 | const app = createApp({
31 | setup () {
32 | const state = reactive({
33 | message: 'hello',
34 | count: 0,
35 | })
36 | function fire() {
37 | state.count += 1
38 | }
39 |
40 | return {
41 | state,
42 | fire
43 | }
44 | },
45 | })
46 | app.mount(`#${insertId}`)
47 | })()
48 |
--------------------------------------------------------------------------------
/CSDN-AutoReply-AutoPager.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/CSDN-AutoReply-AutoPager.js
--------------------------------------------------------------------------------
/GreenCloudVPS.user.js:
--------------------------------------------------------------------------------
1 | // ==UserScript==
2 | // @name GreenCloudVPS
3 | // @namespace http://tampermonkey.net/
4 | // @version 0.1
5 | // @description try to take over the world!
6 | // @author You
7 | // @include https://greencloudvps.com/*
8 | // @icon https://www.google.com/s2/favicons?sz=64&domain=greencloudvps.com
9 | // @grant none
10 | // ==/UserScript==
11 |
12 | function RAFInterval(callback, period = 50, runNow = false) {
13 | var shouldFinish = false
14 | var int_id = null
15 | if(runNow) {
16 | shouldFinish = callback()
17 | if (shouldFinish) return
18 | }
19 | int_id = setInterval(() => {
20 | shouldFinish = callback()
21 | shouldFinish && clearInterval(int_id)
22 | }, period)
23 | }
24 |
25 | function safeWaitFunc(selector, callbackFunc, time, notClear) {
26 | time = time || 60;
27 | notClear = notClear || false;
28 | let doClear = !notClear;
29 | RAFInterval(function () {
30 | if ((typeof (selector) === "string" && document.querySelector(selector) != null)) {
31 | callbackFunc(document.querySelector(selector));
32 | if (doClear) return true;
33 | } else if (typeof (selector) === "function" && (selector() != null || (selector() || []).length > 0)) {
34 | callbackFunc(selector()[0]);
35 | if (doClear) return true;
36 | }
37 | }, time, true);
38 | }
39 |
40 | if(location.href.includes('9th-birthday-sale')) {
41 | // 主体页面,啥事也不做
42 | setTimeout(() => {
43 | if(document.querySelector('.main-content .header-lined').innerText.includes('發生問題了')) {
44 | location.reload()
45 | }
46 | }, 3000 + Math.floor(Math.random() * 3000))
47 | } else if(location.href.includes('cart.php?a=confproduct')) {
48 | // 购物车初始页面
49 | // 点击继续,提交到购物车页面
50 | safeWaitFunc('#btnCompleteProductConfig', node => {
51 | node.click()
52 | })
53 | } else if(location.href.includes('cart.php?a=view')) {
54 | safeWaitFunc('.btn-checkout', node => {
55 | node.click()
56 | })
57 | } else if(location.href.includes('')) {
58 | safeWaitFunc('.radio-inline', () => {
59 | const aliPayNode = document.querySelectorAll('#paymentGatewaysContainer .radio-inline')[3]
60 | aliPayNode.click()
61 |
62 | // 勾上条件
63 | const agreeNode = document.querySelector('.text-center .checkbox-inline')
64 | agreeNode.click()
65 |
66 | document.querySelector('#btnCompleteOrder').click()
67 | })
68 | }
69 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 langren1353
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.
22 |
--------------------------------------------------------------------------------
/Once.js:
--------------------------------------------------------------------------------
1 | // ==UserScript==
2 | // @name 定时执行任务
3 | // @description 定时执行任务函数,但是并不是绝对的精准执行,可能存在一定的时间误差
4 | // @include *
5 | // @version 1.0
6 | // @note 2021-01-18-V1.0 初始化第一版本
7 | // @grant GM_getValue
8 | // @grant GM_setValue
9 | // ==/UserScript==
10 | var OnceScript = (function(){
11 | var _everyTTime = function(seconds, flag, callback) {
12 | seconds = seconds * 1000
13 | let lastRunAt = GM_getValue(flag, 0)
14 | let curTime = new Date().getTime()
15 | if(curTime - lastRunAt > seconds) {
16 | GM_setValue(flag, curTime)
17 | callback()
18 | } else {
19 | setTimeout(callback, curTime - lastRunAt)
20 | }
21 | }
22 | var everyTSeconds = function(seconds, flag, callback){
23 | _everyTTime(seconds, flag, callback)
24 | }
25 | var everyTMinutes = function(minutes, flag, callback){
26 | _everyTTime(minutes * 60, flag, callback)
27 | }
28 | var everyTHours = function(hours, flag, callback){
29 | _everyTTime(hours * 1440, flag, callback)
30 | }
31 | var everyTDay = function(days, flag, callback){
32 | _everyTTime(days * 86400 , flag, callback)
33 | }
34 |
35 | return {
36 | everyTSeconds,
37 | everyTMinutes,
38 | everyTHours,
39 | everyTDay
40 | }
41 | })()
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-cayman
--------------------------------------------------------------------------------
/ac-baidu/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 | # Editor-based HTTP Client requests
5 | /httpRequests/
6 |
--------------------------------------------------------------------------------
/ac-baidu/.idea/ac-baidu.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/ac-baidu/.idea/inspectionProfiles/Project_Default.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/ac-baidu/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ac-baidu/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ac-baidu/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/.eslintignore:
--------------------------------------------------------------------------------
1 |
2 | *.sh
3 | node_modules
4 | *.md
5 | *.woff
6 | *.ttf
7 | .vscode
8 | .idea
9 | dist
10 | /public
11 | /docs
12 | .husky
13 | .local
14 | /bin
15 | .eslintrc.js
16 | prettier.config.js
17 | /src/mock/*
18 |
--------------------------------------------------------------------------------
/ac-baidu/doc/.eslintrc.cjs:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | browser: true,
4 | es2021: true,
5 | 'vue/setup-compiler-macros': true // 这是为了兼容defineProps这种API的
6 | },
7 | extends: [
8 | 'plugin:vue/vue3-recommended', // 兼容vue3语法规范
9 | 'plugin:prettier/recommended',
10 | ],
11 | parser: 'vue-eslint-parser', // 这个插件其实已经安装了,用来解析template语法
12 | parserOptions: {
13 | ecmaVersion: 'latest',
14 | parser: '@typescript-eslint/parser',
15 | sourceType: 'module',
16 | },
17 | plugins: [
18 | 'vue',
19 | '@typescript-eslint',
20 | ],
21 | rules: {
22 | 'prettier/prettier': 'error',
23 | 'linebreak-style': ['error', 'windows'],
24 | 'import/extensions': [
25 | 'error',
26 | 'ignorePackages',
27 | {
28 | js: 'never',
29 | jsx: 'never',
30 | ts: 'never',
31 | tsx: 'never',
32 | },
33 | ],
34 | 'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
35 | },
36 | settings: {
37 | 'import/resolver': {
38 | typescript: {}, // this loads /tsconfig.json to eslint
39 | },
40 | },
41 | }
42 |
--------------------------------------------------------------------------------
/ac-baidu/doc/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 | lib
5 | umd
6 | # 忽略目录
7 | # examples/
8 | # packages/
9 | # public/
10 | # vitepress .cache .temp dist
11 | docs/.vitepress/.temp
12 | docs/.vitepress/cache
13 | docs/.vitepress/cache/deps/
14 | docs/.vitepress/dist
15 |
16 | # local env files
17 | .env.local
18 | .env.*.local
19 |
20 | # Log files
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 | pnpm-debug.log*
25 |
26 | # Editor directories and files
27 | .idea
28 | .vscode
29 | *.suo
30 | *.ntvs*
31 | *.njsproj
32 | *.sln
33 | *.sw?
34 |
--------------------------------------------------------------------------------
/ac-baidu/doc/.npmignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # # local env files
7 | .env.local
8 | .env.*.local
9 | .env.*
10 |
11 | # # Log files
12 | npm-debug.log*
13 | yarn-debug.log*
14 | yarn-error.log*
15 |
16 | # # 忽略目录
17 | examples/
18 | docs/
19 | README_GIF/
20 | public/
21 | tests/
22 | node_modules/
23 | /node_modules
24 | # 忽略指定文件
25 | auto-imports.d.ts
26 | vite.config.ts
27 | babel.config.js
28 | .browserslistrc
29 | .editorconfig
30 | .eslintrc.js
31 | .prettierignore
32 | .prettierrc.js
33 | .eslintignore
34 | tsconfig.node.json
35 | tsconfig.json
36 | yarn.lock
37 | deploy.sh
38 | *.map
39 | # Editor directories and files
40 | .idea
41 | .vscode
42 | .gitee
43 | .git
44 | *.suo
45 | *.zip
46 | *.ntvs*
47 | *.njsproj
48 | *.sln
49 | *.sw?
50 |
--------------------------------------------------------------------------------
/ac-baidu/doc/.prettierignore:
--------------------------------------------------------------------------------
1 | /dist/*
2 | .local
3 | .output.js
4 | /node_modules/**
5 |
6 | **/*.svg
7 | **/*.sh
8 |
9 | /public/*
10 |
--------------------------------------------------------------------------------
/ac-baidu/doc/.prettierrc.cjs:
--------------------------------------------------------------------------------
1 | // @see: https://www.prettier.cn
2 |
3 | module.exports = {
4 | // 指定最大换行长度
5 | printWidth: 100,
6 | // 缩进制表符宽度 | 空格数
7 | tabWidth: 2,
8 | // 使用制表符而不是空格缩进行 (true:制表符,false:空格)
9 | useTabs: false,
10 | // 结尾不用分号 (true:有,false:没有)
11 | semi: false,
12 | // 使用单引号 (true:单引号,false:双引号)
13 | singleQuote: false,
14 | // 在对象字面量中决定是否将属性名用引号括起来 可选值 ""
15 | quoteProps: "as-needed",
16 | // 在JSX中使用单引号而不是双引号 (true:单引号,false:双引号)
17 | jsxSingleQuote: false,
18 | // 多行时尽可能打印尾随逗号 可选值""
19 | trailingComma: "none",
20 | // 在对象,数组括号与文字之间加空格 "{ foo: bar }" (true:有,false:没有)
21 | bracketSpacing: true,
22 | // 将 > 多行元素放在最后一行的末尾,而不是单独放在下一行 (true:放末尾,false:单独一行)
23 | bracketSameLine: false,
24 | // (x) => {} 箭头函数参数只有一个时是否要有小括号 (avoid:省略括号,always:不省略括号)
25 | arrowParens: "avoid",
26 | // 指定要使用的解析器,不需要写文件开头的 @prettier
27 | requirePragma: false,
28 | // 可以在文件顶部插入一个特殊标记,指定该文件已使用 Prettier 格式化
29 | insertPragma: false,
30 | // 用于控制文本是否应该被换行以及如何进行换行
31 | proseWrap: "preserve",
32 | // 在html中空格是否是敏感的 "css" - 遵守 CSS 显示属性的默认值, "strict" - 空格被认为是敏感的 ,"ignore" - 空格被认为是不敏感的
33 | htmlWhitespaceSensitivity: "css",
34 | // 控制在 Vue 单文件组件中
14 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/.vitepress/theme/TVHtml.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
13 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/.vitepress/theme/useComponents.js:
--------------------------------------------------------------------------------
1 | // Don't remove this file, because it registers the demo components.
2 | import Demo from "vitepress-theme-demoblock/dist/client/components/Demo.vue"
3 | import DemoBlock from "vitepress-theme-demoblock/dist/client/components/DemoBlock.vue"
4 |
5 | export function useComponents(app) {
6 | app.component("Demo", Demo)
7 | app.component("DemoBlock", DemoBlock)
8 | }
9 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/.vitepress/utils/highlight.ts:
--------------------------------------------------------------------------------
1 | // 代码高亮
2 | import chalk from "chalk"
3 | // @ts-ignore
4 | import escapeHtml from "escape-html"
5 | // @ts-ignore
6 | import prism from "prismjs"
7 | import consola from "consola"
8 |
9 | // prism is listed as actual dep so it's ok to require
10 | // eslint-disable-next-line @typescript-eslint/no-var-requires
11 | // const loadLanguages = require('prismjs/components/index')
12 | import loadLanguages from "prismjs/components/index"
13 | // required to make embedded highlighting work...
14 | loadLanguages(["markup", "css", "javascript"])
15 |
16 | function wrap(code: string, lang: string): string {
17 | if (lang === "text") {
18 | code = escapeHtml(code)
19 | }
20 | return `${code}
`
21 | }
22 |
23 | export const highlight = (str: string, lang: string) => {
24 | if (!lang) {
25 | return wrap(str, "text")
26 | }
27 | lang = lang.toLowerCase()
28 | const rawLang = lang
29 | if (lang === "vue" || lang === "html") {
30 | lang = "markup"
31 | }
32 | if (lang === "md") {
33 | lang = "markdown"
34 | }
35 | if (lang === "ts") {
36 | lang = "typescript"
37 | }
38 | if (lang === "py") {
39 | lang = "python"
40 | }
41 | if (!prism.languages[lang]) {
42 | try {
43 | loadLanguages([lang])
44 | } catch {
45 | // eslint-disable-next-line no-console
46 | consola.warn(
47 | chalk.yellow(`[vitepress] Syntax highlight for language "${lang}" is not supported.`)
48 | )
49 | }
50 | }
51 | if (prism.languages[lang]) {
52 | const code = prism.highlight(str, prism.languages[lang], lang)
53 | return wrap(code, rawLang)
54 | }
55 | return wrap(str, "text")
56 | }
57 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/.vitepress/vitepress/components/vp-demo/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
48 |
53 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/.vitepress/vitepress/components/vp-demo/vp-source-code.vue:
--------------------------------------------------------------------------------
1 |
15 |
16 |
17 |
20 |
21 |
22 |
28 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/.vitepress/vitepress/index.ts:
--------------------------------------------------------------------------------
1 | import "normalize.css"
2 | // import 'uno.css'
3 | import VPDemo from "./components/vp-demo/index.vue"
4 | import "./style/css-vars.scss"
5 | import "./style/index.scss"
6 |
7 | export { VPDemo }
8 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/.vitepress/vitepress/readme.md:
--------------------------------------------------------------------------------
1 | # vitepress 自定义主题
2 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/.vitepress/vitepress/style/css-vars.scss:
--------------------------------------------------------------------------------
1 | @use "./mixins" as *;
2 |
3 | // css variables
4 | :root {
5 | // layouts
6 | --vp-screen-max-width: 1376px;
7 | --vp-c-brand: #3476d2;
8 | --el-color-primary: #3476d2;
9 | --vp-c-brand-1: #385aca;
10 | --vp-c-brand-light: #747bff;
11 | --vp-c-brand-lighter: #9499ff;
12 | --vp-c-brand-lightest: #bcc0ff;
13 | --vp-c-brand-dark: #535bf2;
14 | --vp-c-brand-darker: #454ce1;
15 | // colors
16 | --text-color: var(--el-text-color-primary);
17 | --text-color-light: var(--el-text-color-regular);
18 | --text-color-lighter: var(--el-text-color-secondary);
19 |
20 | --brand-color: var(--el-color-primary);
21 | --brand-color-light: var(--el-color-primary-light-1);
22 | --bg-brand-color: var(--el-color-primary-light-9);
23 |
24 | --bg-color: var(--el-bg-color);
25 | --bg-color-rgb: 255, 255, 255;
26 | --bg-color-soft: #fafafa;
27 | --bg-color-mute: #f2f2f2;
28 | --border-color: var(--el-border-color);
29 | --border-color-light: var(--el-border-color-lighter);
30 |
31 | --font-family: var(--el-font-family);
32 | --font-family-mono: "JetBrains Mono", source-code-pro, Menlo, Monaco, Consolas, "Courier New",
33 | monospace;
34 |
35 | // info
36 | --success-color: var(--el-color-success);
37 | --warning-color: var(--el-color-warning);
38 | --danger-color: var(--el-color-danger);
39 |
40 | // header vars
41 | --header-height: 55px;
42 | --nav-height: 55px; // alias of --header-height
43 |
44 | /* Screen Size */
45 | --vp-screen-max-width: 1362px;
46 |
47 | @include respond-to("xxl") {
48 | --vp-sidebar-width-small: 234px;
49 | }
50 |
51 | @include respond-to("max") {
52 | --vp-screen-max-width: 1482px;
53 | --vp-sidebar-width-small: 290px;
54 | }
55 |
56 | // sidebar
57 | --vp-sidebar-width-mobile: 320px;
58 | --vp-sidebar-width-small: 266px;
59 |
60 | --sidebar-width-sm: 16rem;
61 | --sidebar-width-xs: 20rem;
62 | --content-min-width: 16rem;
63 | --content-max-width: 48rem;
64 |
65 | --nav-z-index: 11;
66 | --sub-nav-z-index: 11;
67 | --sidebar-z-index: 40;
68 | --overlay-z-index: 30;
69 | // --dropdown-z-index: 22;
70 |
71 | // code block vars
72 | --code-line-height: 1.4;
73 | --code-font-size: var(--el-font-size-base);
74 | --code-bg-color: var(--el-fill-color-light);
75 | --code-text-color: var(--text-color);
76 | --code-font-family: var(--font-family-mono);
77 |
78 | // tip block
79 | --block-tip-bg-color: rgba(var(--el-color-primary-rgb), 0.1);
80 | --block-warning-bg-color: rgba(var(--el-color-danger-rgb), 0.1);
81 |
82 | // link
83 | --link-active-bg-color: rgba(var(--el-color-primary-rgb), 0.1);
84 | }
85 |
86 | .dark {
87 | --bg-color-rgb: 0, 0, 0;
88 | --bg-color-soft: #242424;
89 | --bg-color-mute: #2c2c2c;
90 | }
91 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/.vitepress/vitepress/style/index.scss:
--------------------------------------------------------------------------------
1 | @import "vars.scss";
2 | @import "code.css";
3 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/.vitepress/vitepress/style/mixins.scss:
--------------------------------------------------------------------------------
1 | @use "sass:map";
2 |
3 | @use "./vars" as *;
4 |
5 | @mixin with-bg {
6 | background-color: var(--bg-color);
7 | color: var(--text-color);
8 | transition: border-color var(--el-transition-duration),
9 | background-color var(--el-transition-duration-fast);
10 | }
11 |
12 | @mixin with-border {
13 | border-bottom: 1px solid var(--border-color);
14 | }
15 |
16 | $breakpoints: (
17 | "sm": #{$breakpoint-sm},
18 | "md": #{$breakpoint-md},
19 | "lg": #{$breakpoint-lg},
20 | "xlg": #{$breakpoint-xlg},
21 | "xxl": #{$breakpoint-xxl},
22 | "max": #{$breakpoint-max}
23 | ) !default;
24 |
25 | @mixin respond-to($breakpoint) {
26 | @if #{map.has-key($breakpoints, $breakpoints)} {
27 | @media screen and (min-width: #{map.get($breakpoints, $breakpoint)}) {
28 | @content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/.vitepress/vitepress/style/vars.scss:
--------------------------------------------------------------------------------
1 | // SCSS variables
2 | // breakpoints
3 | $breakpoint-max: 1680px !default;
4 | $breakpoint-xxl: 1440px !default;
5 | $breakpoint-xlg: 1280px !default;
6 | $breakpoint-lg: 960px !default;
7 | $breakpoint-md: 768px !default;
8 | $breakpoint-sm: 480px !default;
9 |
10 | // scrollbar width
11 | $scrollbar-size: 6px;
12 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: home
3 |
4 | title: AC-Baidu
5 | # titleTemplate: 选项卡描述
6 | editLink: true
7 | lastUpdated: true
8 | hero:
9 | name: AC-Baidu优化脚本
10 | text: 百度、谷歌、必应、鸭鸭、好搜搜索优化脚本
11 | tagline: 一个将近10年的脚本,强化搜索效果,增强各搜索引擎搜索功能、显示效果优化、广告拦截的综合性脚本
12 | image:
13 | src: /img/hero.jpg
14 | alt: t-ui-plus
15 | actions:
16 | - theme: brand
17 | text: 快速开始
18 | link: /pages/home/index.md
19 | - theme: brand
20 | text: 安装详解
21 | link: /pages/home/index.md
22 | features:
23 | - icon: 🧩
24 | title: 重定向优化
25 | details: 将搜索结果中的网址进行重定向处理,我们点击跳转的地址就是真实地址,而不是跳转之前的地址。
26 | - icon: ✈️
27 | title: 搜索结果优化
28 | details: 将搜索结果进行显示优化,支持多列显示效果,信息密度集中,页面整体更美观,更易阅读。
29 | ---
30 |
31 |
32 |
33 |
34 | 友情链接:
35 |
36 |
一元机场.PLUS、
37 |
老猫工具箱、
38 |
网站定做(不支持脚本定制)、
39 |
背景壁纸美图
40 |
41 |
42 | Copyright © 搜索引擎优化小组
43 |
44 |
45 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/articles/problems.md:
--------------------------------------------------------------------------------
1 | # 常见问题汇总
2 |
3 | ### 1. 脚本为什么没有生效
4 | > 1. 检查是否安装顺利,安装失败的可能需要重新安装一下
5 | > 2. 检查油猴脚本的版本是否最新,目前TamperMonkey的最新版本应该在5.2.3以上,至少4.x的版本是肯定不对的(尤其是Chrome127以上),尝试使用尽量新的版本:如何安装点这里
6 | > 3. 检查是否开启开发者模式,Chrome Manifest V3对于现有油猴脚本影响挺大的,当前开启方式:Chrome Manifest V3
7 | > 4. 检查浏览(`国产|双核浏览器`),确认浏览器为极速模式,不是兼容模式(兼容模式所有插件不生效)
8 | > 5. 检查插件是否兼容,如果用的插件是ViolentMonkey或者是GreaseMonkey的话,可能存在不兼容现象,可以直接提issue,并指明插件名称和版本
9 | > 6. 检查是否在目标网页上,本脚本只支持在`百度`、`谷歌`、`必应`、`鸭鸭`等搜索引擎的搜索结果页面中生效
10 | > 7. 如果需要报告问题的话,请按照格式提交一下内容:
11 | > - 运行失败的`[完整]`截图,包含整个浏览器页面
12 | > - 注意顺便提交TamperMonkey的下拉列表状态,或者其他插件的打开下拉页面
13 | > - 附带信息:
14 | > - 浏览器版本,例如:Chrome 127
15 | > - 操作系统版本,例如:Windows 10
16 | > - TamperMonkey版本(这个很关键)例如:V5.1.1
17 | > - 脚本版本,例如:V27.02
18 |
19 | ### 2. 搜索中存在显示效果错位
20 | > 1. 这个原因是因为搜索引擎更新,再好的脚本都可能面临搜索引擎更新的情况,甚至需要重新适配,这需要时间
21 | > 2. 如果遇到明显问题的,存在明显错位,明显双列无效果的,可以提issue,或者联系我,我尽量在空闲时间修复
22 |
23 | ### 3. 搜索结果中存在广告
24 | > 1. 这个问题是因为搜索引擎的搜索结果中存在广告,这个是搜索引擎的问题,不是脚本的问题
25 | > 2. 原本搜索引擎的部分广告并不会完全删除掉,因为原本也有部分内容是正常的搜索结果
26 |
27 | ### 4. 为什么不支持搜狗
28 | > 1. 搜狗在早期的版本中其实做过适配,但是因为一些历史原因,无法对搜狗进行适配
29 | > 2. 未来也不会再考虑支持搜狗,如果有需要的话,可以试试别人的其他脚本
30 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/common/base.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 | 导出
19 |
20 |
21 |
22 |
37 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/common/isDebounce.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
22 | 点击事件
30 |
31 |
32 |
33 |
49 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/common/tip.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/custom/baidu/static1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/pages/custom/baidu/static1.png
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/custom/bing/static1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/pages/custom/bing/static1.png
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/custom/components/AToolTipIcon.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
33 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/custom/components/AdsModeChoose.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 原始模式
8 |
9 |
10 | 单列模式
11 |
12 |
13 | 单列居中
14 |
15 |
16 | 双列居中
17 |
18 |
19 | 三列
20 |
21 |
22 | 四列
23 |
24 |
25 |
26 |
27 |
28 |
68 |
71 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/custom/components/SaveAlert.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 保存{{ siteName || '没名字' }}
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
59 |
60 |
63 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/custom/duckduckgo/static1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/pages/custom/duckduckgo/static1.png
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/custom/google/static1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/pages/custom/google/static1.png
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/custom/haosou/static1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/pages/custom/haosou/static1.png
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/custom/index.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | # 配置项
9 |
10 | ### 适用于所有搜索引擎 {#main}
11 |
12 | :::demo 全局配置项
13 | @custom/common/base
14 | :::
15 |
16 | ### 百度配置 {#baidu}
17 |
18 | :::demo 百度配置项
19 | @custom/baidu/base
20 | :::
21 |
22 | ### 谷歌配置 {#google}
23 |
24 | :::demo 谷歌配置项
25 | @custom/google/base
26 | :::
27 |
28 | ### 必应配置 {#bing}
29 |
30 | :::demo 必应配置项
31 | @custom/bing/base
32 | :::
33 |
34 | ### 鸭鸭配置 {#duckduckgo}
35 |
36 | :::demo 鸭鸭配置项
37 | @custom/duckduckgo/base
38 | :::
39 |
40 | ### 好搜配置 {#haosou}
41 |
42 | :::demo 好搜配置项
43 | @custom/haosou/base
44 | :::
45 |
46 |
81 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/custom/utils.js:
--------------------------------------------------------------------------------
1 | import { reactive } from "vue";
2 |
3 | export const initEnv = () => {
4 | if(!window.myEvent) {
5 | window.myEvent = reactive({
6 | list: []
7 | })
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/home/img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/pages/home/img.png
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/home/img_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/pages/home/img_1.png
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/home/img_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/pages/home/img_2.png
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/home/img_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/pages/home/img_3.png
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/pages/home/img_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/pages/home/img_4.png
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/public/favicon.ico
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/public/img/error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/public/img/error.png
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/public/img/hero.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/docs/public/img/hero.jpg
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "allowJs": true,
4 | "target": "ESNext",
5 | "module": "ESNext",
6 | "moduleResolution": "Node",
7 | "resolveJsonModule": true,
8 | "allowSyntheticDefaultImports": true,
9 | "esModuleInterop": true,
10 | "forceConsistentCasingInFileNames": true,
11 | "strict": true,
12 | "noImplicitAny": false,
13 | "skipLibCheck": true,
14 | "jsx": "preserve",
15 | "paths": {
16 | },
17 | "types": [
18 | // 用来指定需要包含的模块,并将其包含在全局范围内。
19 | "element-plus/global",
20 | "../packages/components.d.ts",
21 | ]
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ac-baidu/doc/docs/vite.config.ts:
--------------------------------------------------------------------------------
1 | import { defineConfig } from "vite"
2 | import vueJsx from "@vitejs/plugin-vue-jsx"
3 | import vueSetupExtend from "vite-plugin-vue-setup-extend"
4 | import compression from 'vite-plugin-compression2';
5 | import zlib from 'zlib'
6 |
7 | export default defineConfig({
8 | plugins: [
9 | vueJsx(), vueSetupExtend(),
10 | compression(),
11 | compression({
12 | algorithm: 'brotliCompress',
13 | compressionOptions: {
14 | level: 9
15 | }
16 | })
17 | ],
18 | server: {
19 | host: "0.0.0.0",
20 | https: false,
21 | proxy: {
22 | '/api': {
23 | target: 'http://127.0.0.1:8000',
24 | changeOrigin: false,
25 | secure: false,
26 | },
27 | },
28 | },
29 | build: {
30 | target: 'esnext', // 使用现代 JavaScript 特性
31 | minify: 'terser', // 使用 Terser 进行压缩
32 | rollupOptions: {
33 | treeshake: true,
34 | },
35 | terserOptions: {
36 | compress: {
37 | drop_console: true, // 去除 console 语句
38 | drop_debugger: true, // 去除 debugger 语句
39 | },
40 | format: {
41 | comments: false, // 去除注释
42 | },
43 | },
44 | assetsInlineLimit: 4096, // 小于 4KB 的资源内联为 base64
45 | cssCodeSplit: true, // 启用 CSS 代码分割
46 | },
47 | optimizeDeps: {
48 | include: ['vue', 'vue-router'], // 预构建依赖
49 | },
50 | })
51 |
--------------------------------------------------------------------------------
/ac-baidu/doc/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Vue3 中基于Element-plus二次封装基础组件文档
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/ac-baidu/doc/nginx.conf:
--------------------------------------------------------------------------------
1 | user nginx;
2 | worker_processes 1;
3 | error_log /var/log/nginx/error.log warn;
4 | pid /var/run/nginx.pid;
5 | events {
6 | worker_connections 1024;
7 | }
8 | http {
9 | include /etc/nginx/mime.types;
10 | default_type application/octet-stream;
11 | client_max_body_size 10g;
12 | keepalive_timeout 65;
13 |
14 | # 开启 brotli 压缩
15 | brotli on;
16 | brotli_static off;
17 | brotli_comp_level 4;
18 | brotli_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
19 | brotli_min_length 512;
20 |
21 | # 开启 gzip 压缩
22 | gzip on;
23 | gzip_static off;
24 | gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
25 |
26 | server {
27 | listen 80;
28 | server_name baidu.com;
29 |
30 | access_log off; # 禁用访问日志
31 | error_log /dev/null crit; # 禁用错误日志
32 |
33 | location / {
34 | add_header 'Access-Control-Allow-Origin' '*';
35 | root /usr/share/nginx/html;
36 | index index.html index.htm;
37 |
38 | expires 1d;
39 | add_header Cache-Control "public, immutable";
40 | }
41 |
42 | location /api {
43 | proxy_pass http://fastapi:80/api;
44 | proxy_http_version 1.1;
45 | proxy_set_header Connection "";
46 | proxy_set_header X-Real-IP $remote_addr;
47 | proxy_set_header X-Real-PORT $remote_port;
48 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
49 | proxy_set_header Host $http_host;
50 | proxy_set_header Scheme $scheme;
51 | proxy_set_header Server-Protocol $server_protocol;
52 | proxy_set_header Server-Name $server_name;
53 | proxy_set_header Server-Addr $server_addr;
54 | proxy_set_header Server-Port $server_port;
55 | }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/adaptive-page/index.ts:
--------------------------------------------------------------------------------
1 | import AdaptivePage from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TAdaptivePage = withInstall(AdaptivePage)
5 | export default TAdaptivePage
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/button/index.ts:
--------------------------------------------------------------------------------
1 | import Button from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TButton = withInstall(Button)
5 | export default TButton
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/button/src/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
48 |
69 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/chart/index.ts:
--------------------------------------------------------------------------------
1 | import Chart from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TChart = withInstall(Chart)
5 | export default TChart
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/checkbox/index.ts:
--------------------------------------------------------------------------------
1 | import Checkbox from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TCheckbox = withInstall(Checkbox)
5 | export default TCheckbox
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/checkbox/src/checkbox.d.ts:
--------------------------------------------------------------------------------
1 | export interface OptionsProps {
2 | value: string
3 | label: string
4 | disabled: string
5 | }
6 |
7 | export interface CheckboxItem {
8 | value: string | number | boolean
9 | label: string
10 | slot?: string
11 | disabled?: boolean
12 | }
13 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/checkbox/src/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
14 | {{ item[optionsProps.label] }}
15 |
16 |
17 |
18 |
19 |
20 |
21 |
65 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/components.d.ts:
--------------------------------------------------------------------------------
1 | import TLayoutPage from "./layout-page/src/index.vue"
2 | import TLayoutPageItem from "./layout-page-item/src/index.vue"
3 | import TQueryCondition from "./query-condition/src/index.vue"
4 | import TTable from "./table/src/index.vue"
5 | import TForm from "./form/src/index.vue"
6 | import TSelect from "./select/src/index.vue"
7 | import TSelectTable from "./select-table/src/index.vue"
8 | import TDetail from "./detail/src/index.vue"
9 | import TButton from "./button/src/index.vue"
10 | import TStepWizard from "./step-wizard/src/index.vue"
11 | import TTimerBtn from "./timer-btn/src/index.vue"
12 | import TModuleForm from "./module-form/src/index.vue"
13 | import TAdaptivePage from "./adaptive-page/src/index.vue"
14 | import TDatePicker from "./date-picker/src/index.vue"
15 | import TRadio from "./radio/src/index.vue"
16 | import TCheckbox from "./checkbox/src/index.vue"
17 | import TChart from "./chart/src/index.vue"
18 | import TTabs from "./tabs/src/index.vue"
19 |
20 | declare module "vue" {
21 | export interface GlobalComponents {
22 | TLayoutPage: typeof TLayoutPage
23 | TLayoutPageItem: typeof TLayoutPageItem
24 | TQueryCondition: typeof TQueryCondition
25 | TTable: typeof TTable
26 | TForm: typeof TForm
27 | TSelect: typeof TSelect
28 | TSelectTable: typeof TSelectTable
29 | TDetail: typeof TDetail
30 | TButton: typeof TButton
31 | TStepWizard: typeof TStepWizard
32 | TTimerBtn: typeof TTimerBtn
33 | TModuleForm: typeof TModuleForm
34 | TAdaptivePage: typeof TAdaptivePage
35 | TDatePicker: typeof TDatePicker
36 | TRadio: typeof TRadio
37 | TCheckbox: typeof TCheckbox
38 | TChart: typeof TChart
39 | TTabs: typeof TTabs
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/date-picker/index.ts:
--------------------------------------------------------------------------------
1 | import DatePicker from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TDatePicker = withInstall(DatePicker)
5 | export default TDatePicker
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/date-picker/src/index.vue.d.ts:
--------------------------------------------------------------------------------
1 | import type { PropType } from "vue";
2 | declare const _default: import("vue").DefineComponent<{
3 | modelValue: {
4 | type: (DateConstructor | StringConstructor | ArrayConstructor)[];
5 | };
6 | plusTime: {
7 | type: BooleanConstructor;
8 | default: boolean;
9 | };
10 | /***
11 | * week周;month月;year年;dates多个日期;months多个月;years多个年;daterange日期范围;monthrange月份范围
12 | * datetime日期和时间点;datetimerange日期和时间点范围
13 | */
14 | type: {
15 | type: PropType<"date" | "week" | "month" | "year" | "dates" | "months" | "years" | "daterange" | "monthrange" | "datetime" | "datetimerange">;
16 | validator: (value: string) => boolean;
17 | default: string;
18 | };
19 | shortcuts: {
20 | type: ArrayConstructor;
21 | };
22 | isPickerOptions: {
23 | type: BooleanConstructor;
24 | default: boolean;
25 | };
26 | }, {
27 | state: {
28 | dateOptions: unknown[] | undefined;
29 | };
30 | }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly;
44 | validator: (value: string) => boolean;
45 | default: string;
46 | };
47 | shortcuts: {
48 | type: ArrayConstructor;
49 | };
50 | isPickerOptions: {
51 | type: BooleanConstructor;
52 | default: boolean;
53 | };
54 | }>> & {
55 | onChange?: ((...args: any[]) => any) | undefined;
56 | "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
57 | }, {
58 | type: "date" | "week" | "month" | "year" | "dates" | "months" | "years" | "daterange" | "monthrange" | "datetime" | "datetimerange";
59 | plusTime: boolean;
60 | isPickerOptions: boolean;
61 | }, {}>;
62 | export default _default;
63 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/detail/index.ts:
--------------------------------------------------------------------------------
1 | import Detail from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TDetail = withInstall(Detail)
5 | export default TDetail
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/detail/src/index.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | descColumn: {
3 | type: NumberConstructor;
4 | default: number;
5 | };
6 | dataList: {
7 | type: ObjectConstructor;
8 | default: () => {};
9 | };
10 | listTypeInfo: {
11 | type: ObjectConstructor;
12 | default: () => {};
13 | };
14 | descData: {
15 | type: any[];
16 | default: () => never[];
17 | };
18 | }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly {};
26 | };
27 | listTypeInfo: {
28 | type: ObjectConstructor;
29 | default: () => {};
30 | };
31 | descData: {
32 | type: any[];
33 | default: () => never[];
34 | };
35 | }>>, {
36 | listTypeInfo: Record;
37 | descColumn: number;
38 | dataList: Record;
39 | descData: any;
40 | }, {}>;
41 | export default _default;
42 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/detail/src/renderTooltip.vue:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/detail/src/renderTooltip.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | render: FunctionConstructor;
3 | item: ObjectConstructor;
4 | }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly>, {}, {}>;
8 | export default _default;
9 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/form/index.ts:
--------------------------------------------------------------------------------
1 | import Form from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 | const TForm = withInstall(Form)
4 | export default TForm
5 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/form/src/index.vue.d.ts:
--------------------------------------------------------------------------------
1 | import type { PropType } from "vue";
2 | declare const _default: import("vue").DefineComponent<{
3 | className: {
4 | type: StringConstructor;
5 | };
6 | /** 表单配置项说明
7 | * formData object 表单提交数据
8 | * rules object 验证规则
9 | * fieldList Array 表单渲染数据
10 | * operatorList Array 操作按钮list
11 | * listTypeInfo object 下拉选项数据
12 | * labelWidth String label宽度
13 | */
14 | formOpts: {
15 | type: ObjectConstructor;
16 | default: () => {};
17 | };
18 | widthSize: {
19 | type: PropType<3 | 1 | 2 | 4 | 5 | 6>;
20 | validator: (value: number) => boolean;
21 | default: number;
22 | };
23 | isTrim: {
24 | type: BooleanConstructor;
25 | default: boolean;
26 | };
27 | }, any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleEvent" | "update:modelValue" | "getRefs")[], "handleEvent" | "update:modelValue" | "getRefs", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly {};
42 | };
43 | widthSize: {
44 | type: PropType<3 | 1 | 2 | 4 | 5 | 6>;
45 | validator: (value: number) => boolean;
46 | default: number;
47 | };
48 | isTrim: {
49 | type: BooleanConstructor;
50 | default: boolean;
51 | };
52 | }>> & {
53 | onHandleEvent?: ((...args: any[]) => any) | undefined;
54 | "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
55 | onGetRefs?: ((...args: any[]) => any) | undefined;
56 | }, {
57 | widthSize: 3 | 1 | 2 | 4 | 5 | 6;
58 | formOpts: Record;
59 | isTrim: boolean;
60 | }, {}>;
61 | export default _default;
62 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/form/src/renderComp.vue:
--------------------------------------------------------------------------------
1 |
14 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/form/src/renderComp.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | render: FunctionConstructor;
3 | item: ObjectConstructor;
4 | }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly>, {}, {}>;
8 | export default _default;
9 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/index.d.ts:
--------------------------------------------------------------------------------
1 | import { debounce, throttle, formatNumber } from "./utils";
2 | import TLayoutPage from "./layout-page";
3 | import TLayoutPageItem from "./layout-page-item";
4 | import TQueryCondition from "./query-condition";
5 | import TTable from "./table";
6 | import TForm from "./form";
7 | import TSelect from "./select";
8 | import TSelectTable from "./select-table";
9 | import TDetail from "./detail";
10 | import TButton from "./button";
11 | import TStepWizard from "./step-wizard";
12 | import TTimerBtn from "./timer-btn";
13 | import TModuleForm from "./module-form";
14 | import TAdaptivePage from "./adaptive-page";
15 | import TDatePicker from "./date-picker";
16 | import TRadio from "./radio";
17 | import TCheckbox from "./checkbox";
18 | import TChart from "./chart";
19 | import TTabs from "./tabs";
20 | export { TLayoutPage, TLayoutPageItem, TQueryCondition, TTable, TForm, TSelect, TSelectTable, TDetail, TButton, TStepWizard, TTimerBtn, TModuleForm, TAdaptivePage, TDatePicker, TRadio, TCheckbox, TChart, TTabs };
21 | /**
22 | * @description 公共方法
23 | */
24 | export { throttle, debounce, formatNumber };
25 | declare const _default: {
26 | install: any;
27 | };
28 | export default _default;
29 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/index.ts:
--------------------------------------------------------------------------------
1 | import { debounce, throttle, formatNumber } from "./utils"
2 | import type { Component, App } from "vue"
3 | // import ElementPlus from 'element-plus'
4 | // import 'element-plus/dist/index.css'
5 | // import locale from 'element-plus/lib/locale/lang/zh-cn' // 因element-plus默认是英文,我们指定一下默认中文
6 | import TLayoutPage from "./layout-page"
7 | import TLayoutPageItem from "./layout-page-item"
8 | import TQueryCondition from "./query-condition"
9 | import TTable from "./table"
10 | import TForm from "./form"
11 | import TSelect from "./select"
12 | import TSelectTable from "./select-table"
13 | import TDetail from "./detail"
14 | import TButton from "./button"
15 | import TStepWizard from "./step-wizard"
16 | import TTimerBtn from "./timer-btn"
17 | import TModuleForm from "./module-form"
18 | import TAdaptivePage from "./adaptive-page"
19 | import TDatePicker from "./date-picker"
20 | import TRadio from "./radio"
21 | import TCheckbox from "./checkbox"
22 | import TChart from "./chart"
23 | import TTabs from "./tabs"
24 |
25 | // 存储组件列表
26 | const components: {
27 | [propName: string]: Component
28 | } = {
29 | TLayoutPage,
30 | TLayoutPageItem,
31 | TQueryCondition,
32 | TTable,
33 | TForm,
34 | TSelect,
35 | TSelectTable,
36 | TDetail,
37 | TButton,
38 | TStepWizard,
39 | TTimerBtn,
40 | TModuleForm,
41 | TAdaptivePage,
42 | TDatePicker,
43 | TRadio,
44 | TCheckbox,
45 | TChart,
46 | TTabs
47 | }
48 | // 插件声明:声明所有插件
49 | // 插件注册:在 Vue 项目的入口文件中,通过 ( app.use(插件) ) 进行注册
50 | const installComponents: any = (app: App) => {
51 | // components.forEach((comp: any) => {
52 | // app.component(comp.name as string, comp)
53 | // })
54 | // app.use(ElementPlus, {
55 | // locale // 语言设置
56 | // // size: Cookies.get('size') || 'medium' // 设置默认尺寸
57 | // })
58 | for (const key in components) {
59 | app.component(key, components[key])
60 | }
61 | }
62 | // vue插件
63 | // - install:每个插件都有一个 install 方法
64 | // - 参数:是通过 Vue.createApp() 创建的 app 实例
65 | const install: any = (app: any, router?: any) => {
66 | // !router && installRouter(app);
67 | installComponents(app)
68 | }
69 | // @ts-ignore
70 | if (typeof window !== "undefined" && window.Vue) {
71 | // @ts-ignore
72 | install(window.Vue)
73 | }
74 |
75 | // 按需引入
76 | export {
77 | TLayoutPage,
78 | TLayoutPageItem,
79 | TQueryCondition,
80 | TTable,
81 | TForm,
82 | TSelect,
83 | TSelectTable,
84 | TDetail,
85 | TButton,
86 | TStepWizard,
87 | TTimerBtn,
88 | TModuleForm,
89 | TAdaptivePage,
90 | TDatePicker,
91 | TRadio,
92 | TCheckbox,
93 | TChart,
94 | TTabs
95 | }
96 | /**
97 | * @description 公共方法
98 | */
99 | export { throttle, debounce, formatNumber }
100 |
101 | export default {
102 | // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
103 | install
104 | }
105 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/layout-page-item/index.ts:
--------------------------------------------------------------------------------
1 | import LayoutPageItem from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TLayoutPageItem = withInstall(LayoutPageItem)
5 | export default TLayoutPageItem
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/layout-page-item/src/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
14 |
26 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/layout-page/index.ts:
--------------------------------------------------------------------------------
1 | import LayoutPage from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TLayoutPage = withInstall(LayoutPage)
5 | export default TLayoutPage
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/layout-page/src/index.vue:
--------------------------------------------------------------------------------
1 |
2 | scrollTop = e.target.scrollTop"
7 | >
8 |
9 |
14 |
15 |
16 |
75 |
114 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/module-form/index.ts:
--------------------------------------------------------------------------------
1 | import ModuleForm from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TModuleForm = withInstall(ModuleForm)
5 | export default TModuleForm
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/module-form/src/moduleDetail.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | descData: {
3 | type: ObjectConstructor;
4 | default: () => {};
5 | };
6 | titleBold: {
7 | type: BooleanConstructor;
8 | default: boolean;
9 | };
10 | }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly {};
14 | };
15 | titleBold: {
16 | type: BooleanConstructor;
17 | default: boolean;
18 | };
19 | }>>, {
20 | descData: Record;
21 | titleBold: boolean;
22 | }, {}>;
23 | export default _default;
24 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/module-form/src/moduleForm.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | formOpts: {
3 | type: ObjectConstructor;
4 | default: () => {};
5 | };
6 | titleBold: {
7 | type: BooleanConstructor;
8 | default: boolean;
9 | };
10 | }, {
11 | getChildRef: (index: string | number) => any;
12 | }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "handleEvent"[], "handleEvent", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly {};
16 | };
17 | titleBold: {
18 | type: BooleanConstructor;
19 | default: boolean;
20 | };
21 | }>> & {
22 | onHandleEvent?: ((...args: any[]) => any) | undefined;
23 | }, {
24 | formOpts: Record;
25 | titleBold: boolean;
26 | }, {}>;
27 | export default _default;
28 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/module-form/src/renderTooltip.vue:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/module-form/src/renderTooltip.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | render: FunctionConstructor;
3 | item: ObjectConstructor;
4 | }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly>, {}, {}>;
8 | export default _default;
9 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/query-condition/index.ts:
--------------------------------------------------------------------------------
1 | import QueryCondition from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TQueryCondition = withInstall(QueryCondition)
5 | export default TQueryCondition
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/query-condition/src/renderComp.vue:
--------------------------------------------------------------------------------
1 |
14 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/query-condition/src/renderComp.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | render: FunctionConstructor;
3 | form: ObjectConstructor;
4 | }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly>, {}, {}>;
8 | export default _default;
9 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/radio/index.ts:
--------------------------------------------------------------------------------
1 | import Radio from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TRadio = withInstall(Radio)
5 | export default TRadio
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/radio/src/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 | {{ item[optionsProps.label] }}
16 |
17 |
18 |
19 |
20 |
21 |
22 |
72 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/radio/src/radio.d.ts:
--------------------------------------------------------------------------------
1 | export interface OptionsProps {
2 | value: string
3 | label: string
4 | disabled: string
5 | }
6 |
7 | export interface RadioItem {
8 | value: string | number | boolean
9 | label: string
10 | slot?: string
11 | disabled?: boolean
12 | }
13 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/select-table/index.ts:
--------------------------------------------------------------------------------
1 | import SelectTable from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TSelectTable = withInstall(SelectTable)
5 | export default TSelectTable
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/select-table/src/renderCol.vue:
--------------------------------------------------------------------------------
1 |
30 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/select-table/src/renderCol.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | row: ObjectConstructor;
3 | render: FunctionConstructor;
4 | index: NumberConstructor;
5 | column: {
6 | type: ObjectConstructor;
7 | default: null;
8 | };
9 | }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly>, {
18 | column: Record;
19 | }, {}>;
20 | export default _default;
21 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/select/index.ts:
--------------------------------------------------------------------------------
1 | import Select from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TSelect = withInstall(Select)
5 | export default TSelect
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/step-wizard/index.ts:
--------------------------------------------------------------------------------
1 | import StepWizard from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TStepWizard = withInstall(StepWizard)
5 | export default TStepWizard
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/step-wizard/src/fixBtn.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
12 |
41 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/step-wizard/src/fixBtn.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: {
2 | name: string;
3 | };
4 | export default _default;
5 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/step-wizard/src/index.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | stepData: {
3 | type: any[];
4 | default: () => never[];
5 | required: true;
6 | };
7 | successTitle: {
8 | type: StringConstructor;
9 | default: string;
10 | };
11 | lastBtnTitle: {
12 | type: StringConstructor;
13 | default: string;
14 | };
15 | active: {
16 | type: NumberConstructor;
17 | default: number;
18 | required: true;
19 | };
20 | isShowLastSuccess: {
21 | type: BooleanConstructor;
22 | default: boolean;
23 | };
24 | }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "complete"[], "complete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly never[];
28 | required: true;
29 | };
30 | successTitle: {
31 | type: StringConstructor;
32 | default: string;
33 | };
34 | lastBtnTitle: {
35 | type: StringConstructor;
36 | default: string;
37 | };
38 | active: {
39 | type: NumberConstructor;
40 | default: number;
41 | required: true;
42 | };
43 | isShowLastSuccess: {
44 | type: BooleanConstructor;
45 | default: boolean;
46 | };
47 | }>> & {
48 | onComplete?: ((...args: any[]) => any) | undefined;
49 | }, {
50 | active: number;
51 | stepData: any;
52 | successTitle: string;
53 | lastBtnTitle: string;
54 | isShowLastSuccess: boolean;
55 | }, {}>;
56 | export default _default;
57 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/table/index.d.ts:
--------------------------------------------------------------------------------
1 | declare const TTable: any;
2 | export default TTable;
3 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/table/index.ts:
--------------------------------------------------------------------------------
1 | import Table from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TTable = withInstall(Table)
5 | export default TTable
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/table/src/ColumnSet.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | columns: {
3 | type: ArrayConstructor;
4 | default: () => never[];
5 | };
6 | title: {
7 | type: StringConstructor;
8 | default: string;
9 | };
10 | name: {
11 | type: StringConstructor;
12 | default: string;
13 | };
14 | columnSetBind: {
15 | type: ObjectConstructor;
16 | default: () => void;
17 | };
18 | }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "columnSetting"[], "columnSetting", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly never[];
22 | };
23 | title: {
24 | type: StringConstructor;
25 | default: string;
26 | };
27 | name: {
28 | type: StringConstructor;
29 | default: string;
30 | };
31 | columnSetBind: {
32 | type: ObjectConstructor;
33 | default: () => void;
34 | };
35 | }>> & {
36 | onColumnSetting?: ((...args: any[]) => any) | undefined;
37 | }, {
38 | title: string;
39 | name: string;
40 | columns: unknown[];
41 | columnSetBind: Record;
42 | }, {}>;
43 | export default _default;
44 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/table/src/TTableColumn.vue:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | emits('handleEvent', type, val, scope.$index)"
48 | v-bind="$attrs"
49 | >
50 |
51 |
52 |
53 |
54 |
55 |
56 | {{ scope.row[val.prop] }}
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
86 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/table/src/TTableColumn.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | item: {
3 | type: ObjectConstructor;
4 | default: () => {};
5 | required: true;
6 | };
7 | align: {
8 | type: StringConstructor;
9 | default: string;
10 | };
11 | }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "handleEvent"[], "handleEvent", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly {};
15 | required: true;
16 | };
17 | align: {
18 | type: StringConstructor;
19 | default: string;
20 | };
21 | }>> & {
22 | onHandleEvent?: ((...args: any[]) => any) | undefined;
23 | }, {
24 | item: Record;
25 | align: string;
26 | }, {}>;
27 | export default _default;
28 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/table/src/index.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: any;
2 | export default _default;
3 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/table/src/renderCol.vue:
--------------------------------------------------------------------------------
1 |
30 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/table/src/renderCol.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | row: ObjectConstructor;
3 | render: FunctionConstructor;
4 | index: NumberConstructor;
5 | column: {
6 | type: ObjectConstructor;
7 | default: null;
8 | };
9 | }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly>, {
18 | column: Record;
19 | }, {}>;
20 | export default _default;
21 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/table/src/renderHeader.vue:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/table/src/renderHeader.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | render: FunctionConstructor;
3 | column: {
4 | type: ObjectConstructor;
5 | default: null;
6 | };
7 | }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly>, {
14 | column: Record;
15 | }, {}>;
16 | export default _default;
17 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/table/src/singleEditCell.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | /** 编辑配置项说明
3 | * label: '爱好', // placeholder显示
4 | * editComponent: 'el-select', // 组件
5 | * type: 'select-arr', // option显示
6 | * list: 'hobbyList', // 下拉选择数据源
7 | * arrLabel: 'label', // 下拉选择中文显示
8 | * arrKey: 'value' // 下拉选择number显示(最终传后台)
9 | * bind:{} // 组件衍生属性(即第三方组件属性)
10 | */
11 | configEdit: {
12 | type: any;
13 | default: () => {};
14 | };
15 | listTypeInfo: {
16 | type: ObjectConstructor;
17 | default: () => {};
18 | };
19 | scope: {
20 | type: ObjectConstructor;
21 | default: () => {};
22 | };
23 | prop: {
24 | type: StringConstructor;
25 | default: string;
26 | };
27 | isShowRules: {
28 | type: BooleanConstructor;
29 | default: boolean;
30 | };
31 | modelValue: {
32 | type: (BooleanConstructor | NumberConstructor | ObjectConstructor | DateConstructor | StringConstructor | ArrayConstructor)[];
33 | };
34 | indexColumns: (NumberConstructor | StringConstructor)[];
35 | }, {
36 | resetTselectTableFields: () => void;
37 | }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleEvent" | "update:modelValue" | "keyupHandle")[], "handleEvent" | "update:modelValue" | "keyupHandle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly {};
50 | };
51 | listTypeInfo: {
52 | type: ObjectConstructor;
53 | default: () => {};
54 | };
55 | scope: {
56 | type: ObjectConstructor;
57 | default: () => {};
58 | };
59 | prop: {
60 | type: StringConstructor;
61 | default: string;
62 | };
63 | isShowRules: {
64 | type: BooleanConstructor;
65 | default: boolean;
66 | };
67 | modelValue: {
68 | type: (BooleanConstructor | NumberConstructor | ObjectConstructor | DateConstructor | StringConstructor | ArrayConstructor)[];
69 | };
70 | indexColumns: (NumberConstructor | StringConstructor)[];
71 | }>> & {
72 | onHandleEvent?: ((...args: any[]) => any) | undefined;
73 | "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
74 | onKeyupHandle?: ((...args: any[]) => any) | undefined;
75 | }, {
76 | prop: string;
77 | configEdit: any;
78 | listTypeInfo: Record;
79 | scope: Record;
80 | isShowRules: boolean;
81 | }, {}>;
82 | export default _default;
83 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/tabs/index.ts:
--------------------------------------------------------------------------------
1 | import Tabs from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TTabs = withInstall(Tabs)
5 | export default TTabs
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/tabs/src/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
41 |
61 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/tabs/src/index.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | tabs: {
3 | type: any[];
4 | default: () => never[];
5 | };
6 | }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "tabsChange"[], "tabsChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly never[];
10 | };
11 | }>> & {
12 | onTabsChange?: ((...args: any[]) => any) | undefined;
13 | }, {
14 | tabs: any;
15 | }, {}>;
16 | export default _default;
17 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/timer-btn/index.ts:
--------------------------------------------------------------------------------
1 | import TimerBtn from "./src/index.vue"
2 | import { withInstall } from "../withInstall"
3 |
4 | const TTimerBtn = withInstall(TimerBtn)
5 | export default TTimerBtn
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/timer-btn/src/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
14 |
15 |
56 |
77 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/timer-btn/src/index.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: import("vue").DefineComponent<{
2 | second: {
3 | type: NumberConstructor;
4 | default: number;
5 | };
6 | className: {
7 | type: StringConstructor;
8 | };
9 | }, {
10 | reset: () => void;
11 | }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly> & {
20 | onClick?: ((...args: any[]) => any) | undefined;
21 | }, {
22 | second: number;
23 | }, {}>;
24 | export default _default;
25 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/utils/directives/click-outside/index.d.ts:
--------------------------------------------------------------------------------
1 | import type { ObjectDirective } from "vue";
2 | declare const ClickOutside: ObjectDirective;
3 | export default ClickOutside;
4 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/utils/index.d.ts:
--------------------------------------------------------------------------------
1 | type Func = (...args: any[]) => any;
2 | /**
3 | * 防抖函数
4 | * @param { Function } func 函数
5 | * @param { Number } delay 防抖时间
6 | * @param { Boolean } immediate 是否立即执行
7 | * @param { Function } resultCallback
8 | */
9 | export declare function debounce(func: Func, delay?: number, immediate?: boolean, resultCallback?: Func): {
10 | (this: unknown, ...args: any[]): Promise;
11 | cancel(): void;
12 | };
13 | /**
14 | * 节流函数
15 | * @param { Function } func
16 | * @param { Boolean } interval
17 | * @param { Object } options
18 | * leading:初始 trailing:结尾
19 | */
20 | export declare function throttle(func: Func, interval: number, options?: {
21 | leading: boolean;
22 | trailing: boolean;
23 | }): {
24 | (this: unknown, ...args: any[]): void;
25 | cancel(): void;
26 | };
27 | /**
28 | * 驼峰转换下划线
29 | * @param { String } name
30 | */
31 | export declare function toLine(name: string): string;
32 | export declare function formatNumber(value: number | string, precision?: number, separator?: string, decimal?: string, prefix?: string, suffix?: string): string;
33 | export {};
34 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/withInstall.d.ts:
--------------------------------------------------------------------------------
1 | import { Plugin } from "vue";
2 | type SFCWithInstall = T & Plugin;
3 | export declare const withInstall: >(main: T, extra?: E | undefined) => SFCWithInstall & E;
4 | export {};
5 |
--------------------------------------------------------------------------------
/ac-baidu/doc/packages/withInstall.ts:
--------------------------------------------------------------------------------
1 | import { App, Plugin } from "vue"
2 |
3 | type SFCWithInstall = T & Plugin
4 |
5 | export const withInstall = >(main: T, extra?: E) => {
6 | ;(main as SFCWithInstall).install = (app: App) => {
7 | for (const comp of [main, ...Object.values(extra ?? {})]) {
8 | app.component(comp.name, comp)
9 | }
10 | }
11 | if (extra) {
12 | for (const [compName, comp] of Object.entries(extra)) {
13 | ;(main as Record)[compName] = comp
14 | }
15 | }
16 | // 将 T 断言为具体的类型 T & plugin & Record
17 | return main as SFCWithInstall & E
18 | }
19 |
--------------------------------------------------------------------------------
/ac-baidu/doc/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/public/favicon.ico
--------------------------------------------------------------------------------
/ac-baidu/doc/public/weixin.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/public/weixin.jpg
--------------------------------------------------------------------------------
/ac-baidu/doc/public/wocwin.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/ac-baidu/doc/public/wocwin.jpg
--------------------------------------------------------------------------------
/ac-baidu/doc/rebuild.sh:
--------------------------------------------------------------------------------
1 | # sh
2 | imageName=gm-script
3 | docker buildx build --builder mybuilder --platform=linux/amd64,linux/arm64 \
4 | --tag docker.suzuran.icu/langren1353/$imageName --push \
5 | -f "./ac-baidu/doc/Dockerfile" .
6 |
--------------------------------------------------------------------------------
/ac-baidu/doc/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "allowJs": true,
4 | "target": "ESNext",
5 | "useDefineForClassFields": true,
6 | "noImplicitAny": false, // 隐式具有“any”类型
7 | "module": "ESNext",
8 | "moduleResolution": "Node",
9 | "strict": true,
10 | "jsx": "preserve",
11 | "types": [
12 | "vite/client",
13 | "element-plus/global",
14 | ],
15 | // 如果编译器无法根据变量的使用来判断类型时,将用 any 类型代替
16 | // "suppressImplicitAnyIndexErrors": true,
17 | // 允许从没有设置默认导出的模块中默认导入。这并不影响代码的输出,仅为了类型检查。
18 | "allowSyntheticDefaultImports": true,
19 | "sourceMap": true,
20 | "resolveJsonModule": true,
21 | "isolatedModules": true,
22 | "esModuleInterop": true,
23 | "lib": [
24 | "ESNext",
25 | "DOM"
26 | ],
27 | // 解析非相对模块名的基准目录
28 | "baseUrl": "./",
29 | // 模块名到基于 baseUrl的路径映射的列表。
30 | "paths": {
31 | // "@": [
32 | // "packages"
33 | // ],
34 | // "@vue/shared": [
35 | // "./node_modules/@vue/shared"
36 | // ],
37 | // "@/*": [
38 | // "packages/*"
39 | // ],
40 | "@pages": ["./docs/pages/*"],
41 | "@comp": ["./docs/components/*"]
42 | },
43 | "skipLibCheck": true
44 | },
45 | "include": [
46 | "docs/components/**/*.vue",
47 | // "packages/**/*.ts",
48 | // "packages/**/*.d.ts",
49 | // "packages/**/*.tsx",
50 | // "packages/**/*.vue",
51 | ],
52 | "exclude": [
53 | "node_modules"
54 | ],
55 | "references": [
56 | {
57 | "path": "./tsconfig.node.json"
58 | }
59 | ]
60 | }
61 |
--------------------------------------------------------------------------------
/ac-baidu/doc/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/ac-baidu/doc/vite.config.ts:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite'
2 | import vue from '@vitejs/plugin-vue'
3 | import vueJsx from '@vitejs/plugin-vue-jsx'
4 | import { resolve } from 'path'
5 | import vueSetupExtend from 'vite-plugin-vue-setup-extend' // 设置neme属性
6 | // import AutoImport from 'unplugin-auto-import/vite' // 自动导入
7 | import viteCompression from 'vite-plugin-compression' // 静态资源压缩
8 | // import {visualizer} from 'rollup-plugin-visualizer' // 打包后的视图文件
9 | import dts from 'vite-plugin-dts'
10 |
11 | // https://vitejs.dev/config/
12 | export default defineConfig({
13 | plugins: [
14 | vue(),
15 | dts(),
16 | vueJsx(),
17 | vueSetupExtend(),
18 | viteCompression({
19 | verbose: true,
20 | disable: false, // 不禁用压缩
21 | deleteOriginFile: false, // 压缩后是否删除原文件
22 | threshold: 10240, // 压缩前最小文件大小
23 | algorithm: 'gzip', // 压缩算法
24 | ext: '.gz', // 文件类型
25 | }),
26 | // visualizer({
27 | // open:true, //注意这里要设置为true,否则无效
28 | // gzipSize:true,
29 | // brotliSize:true
30 | // })
31 | ],
32 | server: {
33 | host: '0.0.0.0',
34 | port: 3300,
35 | open: true,
36 | https: false,
37 | proxy: {
38 | '^/mes': {
39 | target: `http://10.0.10.243:5000/mesv2/`,
40 | changeOrigin: true,
41 | rewrite: (p) => p.replace(/^\/mes/, ''),
42 | },
43 | '^/portal-user': {
44 | target: `http://10.0.10.240:8172`,
45 | changeOrigin: true,
46 | rewrite: (p) => p.replace(/^\/portal-user/, '/portal-user'),
47 | },
48 | '^/portal-sso': {
49 | target: `http://10.0.10.240:8171`,
50 | changeOrigin: true,
51 | rewrite: (p) => p.replace(/^\/portal-sso/, '/portal-sso'),
52 | },
53 | },
54 | },
55 | resolve: {
56 | // 配置别名
57 | alias: {
58 | '@': resolve(__dirname, 'packages'),
59 | '@pages': resolve(__dirname, 'docs/pages'),
60 | '@comp': resolve(__dirname, 'docs/components'),
61 | },
62 | // 类型: string[] 导入时想要省略的扩展名列表。
63 | extensions: ['.js', '.ts', '.jsx', '.tsx', '.json', '.vue', '.mjs'],
64 | },
65 | build: {
66 | outDir: 'lib',
67 | // cssCodeSplit: true, // 强制内联CSS
68 | rollupOptions: {
69 | // 请确保外部化那些你的库中不需要的依赖
70 | external: ['vue'],
71 | output: {
72 | // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
73 | globals: {
74 | vue: 'Vue',
75 | },
76 | },
77 | },
78 | lib: {
79 | // entry: resolve(__dirname, 'packages/index.ts'),
80 | entry: './packages/index.ts',
81 | name: 't-ui-plus',
82 | // formats: ['es', 'cjs'],
83 | // formats: ['es', 'umd', 'cjs'],
84 | fileName: 't-ui-plus',
85 | },
86 | },
87 | })
88 |
--------------------------------------------------------------------------------
/ac-baidu/fastapi/.dockerignore:
--------------------------------------------------------------------------------
1 | venv
2 | .*
3 | *.db
4 |
--------------------------------------------------------------------------------
/ac-baidu/fastapi/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM docker.suzuran.icu/library/python:3.12-slim
2 |
3 | ENV PYTHONUNBUFFERED 1
4 |
5 | COPY ./requirements.txt /requirements.txt
6 | RUN pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ --no-cache-dir -r requirements.txt
7 |
8 | COPY . /app
9 |
10 | CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
11 |
--------------------------------------------------------------------------------
/ac-baidu/fastapi/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 |
3 | services:
4 | fastapi:
5 | image: langren1353/gm-script-api
6 | container_name: fastapi
7 | restart: always
8 | ports:
9 | - 2020:80
10 | build:
11 | context: .
12 | dockerfile: Dockerfile
13 | networks:
14 | - my_network
15 |
16 | networks:
17 | my_network:
18 | driver: bridge
19 |
--------------------------------------------------------------------------------
/ac-baidu/fastapi/main.py:
--------------------------------------------------------------------------------
1 | import requests
2 | from fastapi import FastAPI, Form, HTTPException
3 | from fastapi import Request, Response
4 | app = FastAPI(
5 | docs_url=None, # 关闭 Swagger UI
6 | redoc_url=None # 关闭 ReDoc
7 | )
8 |
9 | @app.get("/api/getcss")
10 | def checkFinish(url: str):
11 | try:
12 | print('请求地址中url', url)
13 | response = requests.get(url)
14 | response.raise_for_status() # 确保请求成功
15 |
16 | # 检查 Content-Type 头是否为 CSS
17 | content_type = response.headers.get('Content-Type', '')
18 | content_length = response.headers.get('Content-Length', '')
19 | if 'css' in content_type or 'text' in content_type or 'application/octet-stream' in content_type:
20 | if int(content_length) < 10000: # 10kb以内的大小
21 | # 返回json格式的CSS内容
22 | return {"css": response.content.decode('utf-8'), "detail": 'OK'}
23 | else:
24 | raise HTTPException(status_code=200, detail="请求失败,CSS文件过大,不支持超过10kb的CSS")
25 | else:
26 | raise HTTPException(status_code=200, detail="请求失败,不支持非CSS文件")
27 | except requests.RequestException as e:
28 | raise HTTPException(status_code=200, detail="请求失败")
29 |
30 | @app.get("/api/getimg")
31 | def checkFinish(url: str):
32 | try:
33 | print('请求地址中url', url)
34 | response = requests.get(url)
35 | response.raise_for_status() # 确保请求成功
36 |
37 | # 检查 Content-Type 头是否为 CSS
38 | content_type = response.headers.get('Content-Type', '')
39 | content_length = response.headers.get('Content-Length', '')
40 | if 'image' in content_type or 'application/octet-stream' in content_type:
41 | if int(content_length) < 2000000: # 3mb以内的大小
42 | return Response(content=response.content, media_type="image/jpeg")
43 | else:
44 | raise HTTPException(status_code=200, detail="请求失败,图片文件过大,不支持超过2mb的背景图片")
45 | else:
46 | raise HTTPException(status_code=200, detail="请求失败,不支持非图片文件")
47 | except requests.RequestException as e:
48 | print('请求失败', e)
49 | raise HTTPException(status_code=200, detail="请求失败")
50 |
--------------------------------------------------------------------------------
/ac-baidu/fastapi/rebuild.sh:
--------------------------------------------------------------------------------
1 | # sh
2 | imageName=gm-script-api
3 | docker buildx build --builder mybuilder --platform=linux/amd64,linux/arm64 \
4 | --tag docker.suzuran.icu/langren1353/$imageName --push \
5 | -f "./ac-baidu/fastapi/Dockerfile" "./ac-baidu/fastapi/"
6 |
--------------------------------------------------------------------------------
/ac-baidu/fastapi/requirements.txt:
--------------------------------------------------------------------------------
1 | requests==2.32.3
2 | fastapi==0.111.1
3 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/.yarn-integrity:
--------------------------------------------------------------------------------
1 | {
2 | "systemParams": "linux-x64-93",
3 | "modulesFolders": [
4 | "node_modules"
5 | ],
6 | "flags": [],
7 | "linkedModules": [],
8 | "topLevelPatterns": [
9 | "vite-plugin-compression2@^1.3.0"
10 | ],
11 | "lockfileEntries": {
12 | "@rollup/pluginutils@^5.1.0": "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz#7e53eddc8c7f483a4ad0b94afb1f7f5fd3c771e0",
13 | "@types/estree@^1.0.0": "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.6.tgz#628effeeae2064a1b4e79f78e81d87b7e5fc7b50",
14 | "estree-walker@^2.0.2": "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac",
15 | "picomatch@^2.3.1": "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42",
16 | "tar-mini@^0.2.0": "https://registry.yarnpkg.com/tar-mini/-/tar-mini-0.2.0.tgz#2b2cdc215f5b83b0ab8ce363dc9ded22de51849b",
17 | "vite-plugin-compression2@^1.3.0": "https://registry.yarnpkg.com/vite-plugin-compression2/-/vite-plugin-compression2-1.3.0.tgz#2d7a5afc4182d16498554a9cec9b366431eb3964"
18 | },
19 | "files": [],
20 | "artifacts": {}
21 | }
--------------------------------------------------------------------------------
/ac-baidu/node_modules/@rollup/pluginutils/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2019 RollupJS Plugin Contributors (https://github.com/rollup/plugins/graphs/contributors)
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
13 | all 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
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/@rollup/pluginutils/dist/es/package.json:
--------------------------------------------------------------------------------
1 | {"type":"module"}
--------------------------------------------------------------------------------
/ac-baidu/node_modules/@rollup/pluginutils/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@rollup/pluginutils",
3 | "version": "5.1.0",
4 | "publishConfig": {
5 | "access": "public"
6 | },
7 | "description": "A set of utility functions commonly used by Rollup plugins",
8 | "license": "MIT",
9 | "repository": {
10 | "url": "rollup/plugins",
11 | "directory": "packages/pluginutils"
12 | },
13 | "author": "Rich Harris ",
14 | "homepage": "https://github.com/rollup/plugins/tree/master/packages/pluginutils#readme",
15 | "bugs": {
16 | "url": "https://github.com/rollup/plugins/issues"
17 | },
18 | "main": "./dist/cjs/index.js",
19 | "module": "./dist/es/index.js",
20 | "type": "commonjs",
21 | "exports": {
22 | "types": "./types/index.d.ts",
23 | "import": "./dist/es/index.js",
24 | "default": "./dist/cjs/index.js"
25 | },
26 | "engines": {
27 | "node": ">=14.0.0"
28 | },
29 | "files": [
30 | "dist",
31 | "!dist/**/*.map",
32 | "types",
33 | "README.md",
34 | "LICENSE"
35 | ],
36 | "keywords": [
37 | "rollup",
38 | "plugin",
39 | "utils"
40 | ],
41 | "peerDependencies": {
42 | "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0"
43 | },
44 | "peerDependenciesMeta": {
45 | "rollup": {
46 | "optional": true
47 | }
48 | },
49 | "dependencies": {
50 | "@types/estree": "^1.0.0",
51 | "estree-walker": "^2.0.2",
52 | "picomatch": "^2.3.1"
53 | },
54 | "devDependencies": {
55 | "@rollup/plugin-commonjs": "^23.0.0",
56 | "@rollup/plugin-node-resolve": "^15.0.0",
57 | "@rollup/plugin-typescript": "^9.0.1",
58 | "@types/node": "^14.18.30",
59 | "@types/picomatch": "^2.3.0",
60 | "acorn": "^8.8.0",
61 | "rollup": "^4.0.0-24",
62 | "typescript": "^4.8.3"
63 | },
64 | "types": "./types/index.d.ts",
65 | "ava": {
66 | "extensions": [
67 | "ts"
68 | ],
69 | "require": [
70 | "ts-node/register"
71 | ],
72 | "workerThreads": false,
73 | "files": [
74 | "!**/fixtures/**",
75 | "!**/helpers/**",
76 | "!**/recipes/**",
77 | "!**/types.ts"
78 | ]
79 | },
80 | "nyc": {
81 | "extension": [
82 | ".js",
83 | ".ts"
84 | ]
85 | },
86 | "scripts": {
87 | "build": "rollup -c",
88 | "ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
89 | "ci:lint": "pnpm build && pnpm lint",
90 | "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
91 | "ci:test": "pnpm test -- --verbose",
92 | "prebuild": "del-cli dist",
93 | "prerelease": "pnpm build",
94 | "pretest": "pnpm build --sourcemap",
95 | "release": "pnpm --workspace-root package:release $(pwd)",
96 | "test": "ava",
97 | "test:ts": "tsc --noEmit"
98 | }
99 | }
--------------------------------------------------------------------------------
/ac-baidu/node_modules/@types/estree/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) Microsoft Corporation.
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
22 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/@types/estree/README.md:
--------------------------------------------------------------------------------
1 | # Installation
2 | > `npm install --save @types/estree`
3 |
4 | # Summary
5 | This package contains type definitions for estree (https://github.com/estree/estree).
6 |
7 | # Details
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree.
9 |
10 | ### Additional Details
11 | * Last updated: Wed, 18 Sep 2024 09:37:00 GMT
12 | * Dependencies: none
13 |
14 | # Credits
15 | These definitions were written by [RReverser](https://github.com/RReverser).
16 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/@types/estree/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@types/estree",
3 | "version": "1.0.6",
4 | "description": "TypeScript definitions for estree",
5 | "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree",
6 | "license": "MIT",
7 | "contributors": [
8 | {
9 | "name": "RReverser",
10 | "githubUsername": "RReverser",
11 | "url": "https://github.com/RReverser"
12 | }
13 | ],
14 | "main": "",
15 | "types": "index.d.ts",
16 | "repository": {
17 | "type": "git",
18 | "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
19 | "directory": "types/estree"
20 | },
21 | "scripts": {},
22 | "dependencies": {},
23 | "typesPublisherContentHash": "0310b41994a6f8d7530af6c53d47d8b227f32925e43718507fdb1178e05006b1",
24 | "typeScriptVersion": "4.8",
25 | "nonNpm": true
26 | }
--------------------------------------------------------------------------------
/ac-baidu/node_modules/estree-walker/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # changelog
2 |
3 | ## 2.0.2
4 |
5 | * Internal tidying up (change test runner, convert to JS)
6 |
7 | ## 2.0.1
8 |
9 | * Robustify `this.remove()`, pass current index to walker functions ([#18](https://github.com/Rich-Harris/estree-walker/pull/18))
10 |
11 | ## 2.0.0
12 |
13 | * Add an `asyncWalk` export ([#20](https://github.com/Rich-Harris/estree-walker/pull/20))
14 | * Internal rewrite
15 |
16 | ## 1.0.1
17 |
18 | * Relax node type to `BaseNode` ([#17](https://github.com/Rich-Harris/estree-walker/pull/17))
19 |
20 | ## 1.0.0
21 |
22 | * Don't cache child keys
23 |
24 | ## 0.9.0
25 |
26 | * Add `this.remove()` method
27 |
28 | ## 0.8.1
29 |
30 | * Fix pkg.files
31 |
32 | ## 0.8.0
33 |
34 | * Adopt `estree` types
35 |
36 | ## 0.7.0
37 |
38 | * Add a `this.replace(node)` method
39 |
40 | ## 0.6.1
41 |
42 | * Only traverse nodes that exist and have a type ([#9](https://github.com/Rich-Harris/estree-walker/pull/9))
43 | * Only cache keys for nodes with a type ([#8](https://github.com/Rich-Harris/estree-walker/pull/8))
44 |
45 | ## 0.6.0
46 |
47 | * Fix walker context type
48 | * Update deps, remove unncessary Bublé transformation
49 |
50 | ## 0.5.2
51 |
52 | * Add types to package
53 |
54 | ## 0.5.1
55 |
56 | * Prevent context corruption when `walk()` is called during a walk
57 |
58 | ## 0.5.0
59 |
60 | * Export `childKeys`, for manually fixing in case of malformed ASTs
61 |
62 | ## 0.4.0
63 |
64 | * Add TypeScript typings ([#3](https://github.com/Rich-Harris/estree-walker/pull/3))
65 |
66 | ## 0.3.1
67 |
68 | * Include `pkg.repository` ([#2](https://github.com/Rich-Harris/estree-walker/pull/2))
69 |
70 | ## 0.3.0
71 |
72 | * More predictable ordering
73 |
74 | ## 0.2.1
75 |
76 | * Keep `context` shape
77 |
78 | ## 0.2.0
79 |
80 | * Add ES6 build
81 |
82 | ## 0.1.3
83 |
84 | * npm snafu
85 |
86 | ## 0.1.2
87 |
88 | * Pass current prop and index to `enter`/`leave` callbacks
89 |
90 | ## 0.1.1
91 |
92 | * First release
93 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/estree-walker/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015-20 [these people](https://github.com/Rich-Harris/estree-walker/graphs/contributors)
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/ac-baidu/node_modules/estree-walker/README.md:
--------------------------------------------------------------------------------
1 | # estree-walker
2 |
3 | Simple utility for walking an [ESTree](https://github.com/estree/estree)-compliant AST, such as one generated by [acorn](https://github.com/marijnh/acorn).
4 |
5 |
6 | ## Installation
7 |
8 | ```bash
9 | npm i estree-walker
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var walk = require( 'estree-walker' ).walk;
17 | var acorn = require( 'acorn' );
18 |
19 | ast = acorn.parse( sourceCode, options ); // https://github.com/acornjs/acorn
20 |
21 | walk( ast, {
22 | enter: function ( node, parent, prop, index ) {
23 | // some code happens
24 | },
25 | leave: function ( node, parent, prop, index ) {
26 | // some code happens
27 | }
28 | });
29 | ```
30 |
31 | Inside the `enter` function, calling `this.skip()` will prevent the node's children being walked, or the `leave` function (which is optional) being called.
32 |
33 | Call `this.replace(new_node)` in either `enter` or `leave` to replace the current node with a new one.
34 |
35 | Call `this.remove()` in either `enter` or `leave` to remove the current node.
36 |
37 | ## Why not use estraverse?
38 |
39 | The ESTree spec is evolving to accommodate ES6/7. I've had a couple of experiences where [estraverse](https://github.com/estools/estraverse) was unable to handle an AST generated by recent versions of acorn, because it hard-codes visitor keys.
40 |
41 | estree-walker, by contrast, simply enumerates a node's properties to find child nodes (and child lists of nodes), and is therefore resistant to spec changes. It's also much smaller. (The performance, if you're wondering, is basically identical.)
42 |
43 | None of which should be taken as criticism of estraverse, which has more features and has been battle-tested in many more situations, and for which I'm very grateful.
44 |
45 |
46 | ## License
47 |
48 | MIT
49 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/estree-walker/dist/esm/package.json:
--------------------------------------------------------------------------------
1 | {"type":"module"}
--------------------------------------------------------------------------------
/ac-baidu/node_modules/estree-walker/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "estree-walker",
3 | "description": "Traverse an ESTree-compliant AST",
4 | "version": "2.0.2",
5 | "private": false,
6 | "author": "Rich Harris",
7 | "license": "MIT",
8 | "repository": {
9 | "type": "git",
10 | "url": "https://github.com/Rich-Harris/estree-walker"
11 | },
12 | "type": "commonjs",
13 | "main": "./dist/umd/estree-walker.js",
14 | "module": "./dist/esm/estree-walker.js",
15 | "exports": {
16 | "require": "./dist/umd/estree-walker.js",
17 | "import": "./dist/esm/estree-walker.js"
18 | },
19 | "types": "types/index.d.ts",
20 | "scripts": {
21 | "prepublishOnly": "npm run build && npm test",
22 | "build": "tsc && rollup -c",
23 | "test": "uvu test"
24 | },
25 | "devDependencies": {
26 | "@types/estree": "0.0.42",
27 | "rollup": "^2.10.9",
28 | "typescript": "^3.7.5",
29 | "uvu": "^0.5.1"
30 | },
31 | "files": [
32 | "src",
33 | "dist",
34 | "types",
35 | "README.md"
36 | ]
37 | }
38 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/estree-walker/src/index.js:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | import { SyncWalker } from './sync.js';
3 | import { AsyncWalker } from './async.js';
4 |
5 | /** @typedef { import('estree').BaseNode} BaseNode */
6 | /** @typedef { import('./sync.js').SyncHandler} SyncHandler */
7 | /** @typedef { import('./async.js').AsyncHandler} AsyncHandler */
8 |
9 | /**
10 | *
11 | * @param {BaseNode} ast
12 | * @param {{
13 | * enter?: SyncHandler
14 | * leave?: SyncHandler
15 | * }} walker
16 | * @returns {BaseNode}
17 | */
18 | export function walk(ast, { enter, leave }) {
19 | const instance = new SyncWalker(enter, leave);
20 | return instance.visit(ast, null);
21 | }
22 |
23 | /**
24 | *
25 | * @param {BaseNode} ast
26 | * @param {{
27 | * enter?: AsyncHandler
28 | * leave?: AsyncHandler
29 | * }} walker
30 | * @returns {Promise}
31 | */
32 | export async function asyncWalk(ast, { enter, leave }) {
33 | const instance = new AsyncWalker(enter, leave);
34 | return await instance.visit(ast, null);
35 | }
36 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/estree-walker/src/package.json:
--------------------------------------------------------------------------------
1 | {"type": "module"}
--------------------------------------------------------------------------------
/ac-baidu/node_modules/estree-walker/src/walker.js:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | /** @typedef { import('estree').BaseNode} BaseNode */
3 |
4 | /** @typedef {{
5 | skip: () => void;
6 | remove: () => void;
7 | replace: (node: BaseNode) => void;
8 | }} WalkerContext */
9 |
10 | export class WalkerBase {
11 | constructor() {
12 | /** @type {boolean} */
13 | this.should_skip = false;
14 |
15 | /** @type {boolean} */
16 | this.should_remove = false;
17 |
18 | /** @type {BaseNode | null} */
19 | this.replacement = null;
20 |
21 | /** @type {WalkerContext} */
22 | this.context = {
23 | skip: () => (this.should_skip = true),
24 | remove: () => (this.should_remove = true),
25 | replace: (node) => (this.replacement = node)
26 | };
27 | }
28 |
29 | /**
30 | *
31 | * @param {any} parent
32 | * @param {string} prop
33 | * @param {number} index
34 | * @param {BaseNode} node
35 | */
36 | replace(parent, prop, index, node) {
37 | if (parent) {
38 | if (index !== null) {
39 | parent[prop][index] = node;
40 | } else {
41 | parent[prop] = node;
42 | }
43 | }
44 | }
45 |
46 | /**
47 | *
48 | * @param {any} parent
49 | * @param {string} prop
50 | * @param {number} index
51 | */
52 | remove(parent, prop, index) {
53 | if (parent) {
54 | if (index !== null) {
55 | parent[prop].splice(index, 1);
56 | } else {
57 | delete parent[prop];
58 | }
59 | }
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/estree-walker/types/async.d.ts:
--------------------------------------------------------------------------------
1 | /** @typedef { import('estree').BaseNode} BaseNode */
2 | /** @typedef { import('./walker').WalkerContext} WalkerContext */
3 | /** @typedef {(
4 | * this: WalkerContext,
5 | * node: BaseNode,
6 | * parent: BaseNode,
7 | * key: string,
8 | * index: number
9 | * ) => Promise} AsyncHandler */
10 | export class AsyncWalker extends WalkerBase {
11 | /**
12 | *
13 | * @param {AsyncHandler} enter
14 | * @param {AsyncHandler} leave
15 | */
16 | constructor(enter: (this: {
17 | skip: () => void;
18 | remove: () => void;
19 | replace: (node: import("estree").BaseNode) => void;
20 | }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => Promise, leave: (this: {
21 | skip: () => void;
22 | remove: () => void;
23 | replace: (node: import("estree").BaseNode) => void;
24 | }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => Promise);
25 | /** @type {AsyncHandler} */
26 | enter: AsyncHandler;
27 | /** @type {AsyncHandler} */
28 | leave: AsyncHandler;
29 | /**
30 | *
31 | * @param {BaseNode} node
32 | * @param {BaseNode} parent
33 | * @param {string} [prop]
34 | * @param {number} [index]
35 | * @returns {Promise}
36 | */
37 | visit(node: import("estree").BaseNode, parent: import("estree").BaseNode, prop?: string, index?: number): Promise;
38 | should_skip: any;
39 | should_remove: any;
40 | replacement: any;
41 | }
42 | export type BaseNode = import("estree").BaseNode;
43 | export type WalkerContext = {
44 | skip: () => void;
45 | remove: () => void;
46 | replace: (node: import("estree").BaseNode) => void;
47 | };
48 | export type AsyncHandler = (this: {
49 | skip: () => void;
50 | remove: () => void;
51 | replace: (node: import("estree").BaseNode) => void;
52 | }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => Promise;
53 | import { WalkerBase } from "./walker.js";
54 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/estree-walker/types/index.d.ts:
--------------------------------------------------------------------------------
1 | /** @typedef { import('estree').BaseNode} BaseNode */
2 | /** @typedef { import('./sync.js').SyncHandler} SyncHandler */
3 | /** @typedef { import('./async.js').AsyncHandler} AsyncHandler */
4 | /**
5 | *
6 | * @param {BaseNode} ast
7 | * @param {{
8 | * enter?: SyncHandler
9 | * leave?: SyncHandler
10 | * }} walker
11 | * @returns {BaseNode}
12 | */
13 | export function walk(ast: import("estree").BaseNode, { enter, leave }: {
14 | enter?: (this: {
15 | skip: () => void;
16 | remove: () => void;
17 | replace: (node: import("estree").BaseNode) => void;
18 | }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => void;
19 | leave?: (this: {
20 | skip: () => void;
21 | remove: () => void;
22 | replace: (node: import("estree").BaseNode) => void;
23 | }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => void;
24 | }): import("estree").BaseNode;
25 | /**
26 | *
27 | * @param {BaseNode} ast
28 | * @param {{
29 | * enter?: AsyncHandler
30 | * leave?: AsyncHandler
31 | * }} walker
32 | * @returns {Promise}
33 | */
34 | export function asyncWalk(ast: import("estree").BaseNode, { enter, leave }: {
35 | enter?: (this: {
36 | skip: () => void;
37 | remove: () => void;
38 | replace: (node: import("estree").BaseNode) => void;
39 | }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => Promise;
40 | leave?: (this: {
41 | skip: () => void;
42 | remove: () => void;
43 | replace: (node: import("estree").BaseNode) => void;
44 | }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => Promise;
45 | }): Promise;
46 | export type BaseNode = import("estree").BaseNode;
47 | export type SyncHandler = (this: {
48 | skip: () => void;
49 | remove: () => void;
50 | replace: (node: import("estree").BaseNode) => void;
51 | }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => void;
52 | export type AsyncHandler = (this: {
53 | skip: () => void;
54 | remove: () => void;
55 | replace: (node: import("estree").BaseNode) => void;
56 | }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => Promise;
57 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/estree-walker/types/sync.d.ts:
--------------------------------------------------------------------------------
1 | /** @typedef { import('estree').BaseNode} BaseNode */
2 | /** @typedef { import('./walker.js').WalkerContext} WalkerContext */
3 | /** @typedef {(
4 | * this: WalkerContext,
5 | * node: BaseNode,
6 | * parent: BaseNode,
7 | * key: string,
8 | * index: number
9 | * ) => void} SyncHandler */
10 | export class SyncWalker extends WalkerBase {
11 | /**
12 | *
13 | * @param {SyncHandler} enter
14 | * @param {SyncHandler} leave
15 | */
16 | constructor(enter: (this: {
17 | skip: () => void;
18 | remove: () => void;
19 | replace: (node: import("estree").BaseNode) => void;
20 | }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => void, leave: (this: {
21 | skip: () => void;
22 | remove: () => void;
23 | replace: (node: import("estree").BaseNode) => void;
24 | }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => void);
25 | /** @type {SyncHandler} */
26 | enter: SyncHandler;
27 | /** @type {SyncHandler} */
28 | leave: SyncHandler;
29 | /**
30 | *
31 | * @param {BaseNode} node
32 | * @param {BaseNode} parent
33 | * @param {string} [prop]
34 | * @param {number} [index]
35 | * @returns {BaseNode}
36 | */
37 | visit(node: import("estree").BaseNode, parent: import("estree").BaseNode, prop?: string, index?: number): import("estree").BaseNode;
38 | should_skip: any;
39 | should_remove: any;
40 | replacement: any;
41 | }
42 | export type BaseNode = import("estree").BaseNode;
43 | export type WalkerContext = {
44 | skip: () => void;
45 | remove: () => void;
46 | replace: (node: import("estree").BaseNode) => void;
47 | };
48 | export type SyncHandler = (this: {
49 | skip: () => void;
50 | remove: () => void;
51 | replace: (node: import("estree").BaseNode) => void;
52 | }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => void;
53 | import { WalkerBase } from "./walker.js";
54 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/estree-walker/types/walker.d.ts:
--------------------------------------------------------------------------------
1 | /** @typedef { import('estree').BaseNode} BaseNode */
2 | /** @typedef {{
3 | skip: () => void;
4 | remove: () => void;
5 | replace: (node: BaseNode) => void;
6 | }} WalkerContext */
7 | export class WalkerBase {
8 | /** @type {boolean} */
9 | should_skip: boolean;
10 | /** @type {boolean} */
11 | should_remove: boolean;
12 | /** @type {BaseNode | null} */
13 | replacement: BaseNode | null;
14 | /** @type {WalkerContext} */
15 | context: WalkerContext;
16 | /**
17 | *
18 | * @param {any} parent
19 | * @param {string} prop
20 | * @param {number} index
21 | * @param {BaseNode} node
22 | */
23 | replace(parent: any, prop: string, index: number, node: import("estree").BaseNode): void;
24 | /**
25 | *
26 | * @param {any} parent
27 | * @param {string} prop
28 | * @param {number} index
29 | */
30 | remove(parent: any, prop: string, index: number): void;
31 | }
32 | export type BaseNode = import("estree").BaseNode;
33 | export type WalkerContext = {
34 | skip: () => void;
35 | remove: () => void;
36 | replace: (node: import("estree").BaseNode) => void;
37 | };
38 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/picomatch/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2017-present, Jon Schlinkert.
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
13 | all 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
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/picomatch/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = require('./lib/picomatch');
4 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/picomatch/lib/utils.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | const path = require('path');
4 | const win32 = process.platform === 'win32';
5 | const {
6 | REGEX_BACKSLASH,
7 | REGEX_REMOVE_BACKSLASH,
8 | REGEX_SPECIAL_CHARS,
9 | REGEX_SPECIAL_CHARS_GLOBAL
10 | } = require('./constants');
11 |
12 | exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
13 | exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
14 | exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
15 | exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
16 | exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
17 |
18 | exports.removeBackslashes = str => {
19 | return str.replace(REGEX_REMOVE_BACKSLASH, match => {
20 | return match === '\\' ? '' : match;
21 | });
22 | };
23 |
24 | exports.supportsLookbehinds = () => {
25 | const segs = process.version.slice(1).split('.').map(Number);
26 | if (segs.length === 3 && segs[0] >= 9 || (segs[0] === 8 && segs[1] >= 10)) {
27 | return true;
28 | }
29 | return false;
30 | };
31 |
32 | exports.isWindows = options => {
33 | if (options && typeof options.windows === 'boolean') {
34 | return options.windows;
35 | }
36 | return win32 === true || path.sep === '\\';
37 | };
38 |
39 | exports.escapeLast = (input, char, lastIdx) => {
40 | const idx = input.lastIndexOf(char, lastIdx);
41 | if (idx === -1) return input;
42 | if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
43 | return `${input.slice(0, idx)}\\${input.slice(idx)}`;
44 | };
45 |
46 | exports.removePrefix = (input, state = {}) => {
47 | let output = input;
48 | if (output.startsWith('./')) {
49 | output = output.slice(2);
50 | state.prefix = './';
51 | }
52 | return output;
53 | };
54 |
55 | exports.wrapOutput = (input, state = {}, options = {}) => {
56 | const prepend = options.contains ? '' : '^';
57 | const append = options.contains ? '' : '$';
58 |
59 | let output = `${prepend}(?:${input})${append}`;
60 | if (state.negated === true) {
61 | output = `(?:^(?!${output}).*$)`;
62 | }
63 | return output;
64 | };
65 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/picomatch/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "picomatch",
3 | "description": "Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.",
4 | "version": "2.3.1",
5 | "homepage": "https://github.com/micromatch/picomatch",
6 | "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7 | "funding": "https://github.com/sponsors/jonschlinkert",
8 | "repository": "micromatch/picomatch",
9 | "bugs": {
10 | "url": "https://github.com/micromatch/picomatch/issues"
11 | },
12 | "license": "MIT",
13 | "files": [
14 | "index.js",
15 | "lib"
16 | ],
17 | "main": "index.js",
18 | "engines": {
19 | "node": ">=8.6"
20 | },
21 | "scripts": {
22 | "lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .",
23 | "mocha": "mocha --reporter dot",
24 | "test": "npm run lint && npm run mocha",
25 | "test:ci": "npm run test:cover",
26 | "test:cover": "nyc npm run mocha"
27 | },
28 | "devDependencies": {
29 | "eslint": "^6.8.0",
30 | "fill-range": "^7.0.1",
31 | "gulp-format-md": "^2.0.0",
32 | "mocha": "^6.2.2",
33 | "nyc": "^15.0.0",
34 | "time-require": "github:jonschlinkert/time-require"
35 | },
36 | "keywords": [
37 | "glob",
38 | "match",
39 | "picomatch"
40 | ],
41 | "nyc": {
42 | "reporter": [
43 | "html",
44 | "lcov",
45 | "text-summary"
46 | ]
47 | },
48 | "verb": {
49 | "toc": {
50 | "render": true,
51 | "method": "preWrite",
52 | "maxdepth": 3
53 | },
54 | "layout": "empty",
55 | "tasks": [
56 | "readme"
57 | ],
58 | "plugins": [
59 | "gulp-format-md"
60 | ],
61 | "lint": {
62 | "reflinks": true
63 | },
64 | "related": {
65 | "list": [
66 | "braces",
67 | "micromatch"
68 | ]
69 | },
70 | "reflinks": [
71 | "braces",
72 | "expand-brackets",
73 | "extglob",
74 | "fill-range",
75 | "micromatch",
76 | "minimatch",
77 | "nanomatch",
78 | "picomatch"
79 | ]
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/tar-mini/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 kanno
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.
22 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/tar-mini/README.md:
--------------------------------------------------------------------------------
1 | # TarMini
2 |
3 | It's an implementation based on the `ustar` format. This package only provides low-level API's.
4 |
5 | ### Usage
6 |
7 | ```ts
8 | // packing
9 | import { createPack, createExtract } from 'tar-mini'
10 |
11 | const pack = createPack()
12 |
13 | pack.add(new Uint8Array(512), {
14 | // options
15 | })
16 |
17 | pack.done()
18 |
19 | // extracting
20 |
21 | const extract = createExtract()
22 |
23 | extract.on('entry', (head, file) => {
24 | // todo
25 | })
26 |
27 | pack.receiver.pipe(extract.receiver)
28 | ```
29 |
30 | ### Sponsors
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | ### Related
39 |
40 | - [tar](https://www.gnu.org/software/tar/manual/html_node/Standard.html)
41 |
42 | ### LICENSE
43 |
44 | [MIT](./LICENSE)
45 |
46 | ### Author
47 |
48 | Kanno
49 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/tar-mini/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tar-mini",
3 | "version": "0.2.0",
4 | "description": "It's an implementation based on the `ustar` format",
5 | "main": "dist/index.js",
6 | "types": "dist/index.d.ts",
7 | "module": "dist/index.mjs",
8 | "scripts": {
9 | "dev": "rollup --config rollup.config.mts --configPlugin swc3 --watch",
10 | "build": "rollup --config rollup.config.mts --configPlugin swc3",
11 | "test": "vitest"
12 | },
13 | "exports": {
14 | ".": {
15 | "import": "./dist/index.mjs",
16 | "require": "./dist/index.js",
17 | "types": "./dist/index.d.ts"
18 | }
19 | },
20 | "keywords": [
21 | "archive",
22 | "tar",
23 | "pack",
24 | "extract",
25 | "ustar"
26 | ],
27 | "author": "Kanno",
28 | "license": "MIT",
29 | "repository": {
30 | "type": "git",
31 | "url": "git+https://github.com/nonzzz/tar.git"
32 | },
33 | "files": [
34 | "dist",
35 | "README.md",
36 | "LICENSE"
37 | ],
38 | "bugs": {
39 | "url": "https://github.com/nonzzz/tar/issues"
40 | },
41 | "homepage": "https://github.com/nonzzz/tar#readme",
42 | "devDependencies": {
43 | "@types/node": "^20.14.11",
44 | "@vitest/coverage-v8": "^2.0.4",
45 | "dprint": "^0.47.2",
46 | "eslint": "^8.57.0",
47 | "eslint-config-kagura": "^2.2.1",
48 | "rollup": "^4.19.0",
49 | "rollup-plugin-dts": "^6.1.1",
50 | "rollup-plugin-swc3": "^0.11.2",
51 | "tinyexec": "^0.3.0",
52 | "typescript": "^5.5.4",
53 | "vitest": "^2.0.4"
54 | },
55 | "packageManager": "pnpm@9.4.0",
56 | "pnpm": {
57 | "overrides": {
58 | "array-includes": "npm:@nolyfill/array-includes@^1",
59 | "array.prototype.flat": "npm:@nolyfill/array.prototype.flat@^1",
60 | "array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@^1",
61 | "deep-equal": "npm:@nolyfill/deep-equal@^1",
62 | "es-iterator-helpers": "npm:@nolyfill/es-iterator-helpers@^1",
63 | "hasown": "npm:@nolyfill/hasown@^1",
64 | "is-core-module": "npm:@nolyfill/is-core-module@^1",
65 | "object.assign": "npm:@nolyfill/object.assign@^1",
66 | "object.fromentries": "npm:@nolyfill/object.fromentries@^1",
67 | "object.values": "npm:@nolyfill/object.values@^1",
68 | "safe-regex-test": "npm:@nolyfill/safe-regex-test@^1",
69 | "string.prototype.includes": "npm:@nolyfill/string.prototype.includes@^1"
70 | }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/vite-plugin-compression2/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 kanno
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.
22 |
--------------------------------------------------------------------------------
/ac-baidu/node_modules/vite-plugin-compression2/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vite-plugin-compression2",
3 | "packageManager": "yarn@4.1.0",
4 | "version": "1.3.0",
5 | "description": "a fast vite compression plugin",
6 | "main": "dist/index.js",
7 | "types": "dist/index.d.ts",
8 | "module": "dist/index.mjs",
9 | "workspaces": [
10 | "example",
11 | "e2e/*"
12 | ],
13 | "scripts": {
14 | "build": "rollup --config rollup.config.ts --configPlugin swc3",
15 | "dev": "rollup --config rollup.config.ts --configPlugin swc3 --watch",
16 | "test": "vitest __tests__",
17 | "lint": "eslint . --fix",
18 | "e2e": "vitest e2e/**/*.spec.ts --coverage.enabled=false",
19 | "format": "dprint fmt"
20 | },
21 | "files": [
22 | "dist",
23 | "README.md",
24 | "LICENSE"
25 | ],
26 | "repository": {
27 | "type": "git",
28 | "url": "git+https://github.com/nonzzz/vite-plugin-compression.git"
29 | },
30 | "keywords": [
31 | "vite",
32 | "vite-plugin",
33 | "compress"
34 | ],
35 | "author": "Kanno",
36 | "license": "MIT",
37 | "bugs": {
38 | "url": "https://github.com/nonzzz/vite-plugin-compression/issues"
39 | },
40 | "homepage": "https://github.com/nonzzz/vite-plugin-compression#readme",
41 | "exports": {
42 | ".": {
43 | "types": "./dist/index.d.ts",
44 | "import": "./dist/index.mjs",
45 | "require": "./dist/index.js"
46 | }
47 | },
48 | "devDependencies": {
49 | "@swc/core": "^1.6.6",
50 | "@types/node": "^20.14.9",
51 | "@vitest/coverage-v8": "^2.0.3",
52 | "dprint": "^0.46.3",
53 | "eslint": "^8.57.0",
54 | "eslint-config-kagura": "^2.1.1",
55 | "playwright": "^1.32.3",
56 | "rollup": "^4.18.0",
57 | "rollup-plugin-dts": "^6.1.1",
58 | "rollup-plugin-swc3": "^0.11.2",
59 | "sirv": "^2.0.3",
60 | "typescript": "^5.3.3",
61 | "vite": "^5.3.4",
62 | "vitest": "^2.0.3"
63 | },
64 | "dependencies": {
65 | "@rollup/pluginutils": "^5.1.0",
66 | "tar-mini": "^0.2.0"
67 | },
68 | "resolutions": {
69 | "is-core-module": "npm:@nolyfill/is-core-module@^1",
70 | "vite@npm:2.9.15": "patch:vite@npm%3A2.9.15#~/.yarn/patches/vite-npm-2.9.15-da673a6d8d.patch",
71 | "sirv": "2.0.3"
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 |
3 | services:
4 | vitepress:
5 | image: langren1353/gm-script
6 | container_name: vitepress
7 | restart: always
8 | ports:
9 | - 8422:80
10 | build:
11 | context: ./
12 | dockerfile: ./ac-baidu/doc/Dockerfile
13 | volumes:
14 | - ./newcss:/usr/share/nginx/html/newcss
15 | networks:
16 | - my_network
17 |
18 | fastapi:
19 | image: langren1353/gm-script-api
20 | container_name: fastapi
21 | restart: always
22 | ports:
23 | - 8423:80
24 | build:
25 | context: ./ac-baidu/fastapi/
26 | dockerfile: Dockerfile
27 | networks:
28 | - my_network
29 |
30 | networks:
31 | my_network:
32 | driver: bridge
33 |
--------------------------------------------------------------------------------
/help.md:
--------------------------------------------------------------------------------
1 | # 脚本使用说明
2 |   
3 |
4 | 本教程基于脚本 [AC-baidu:重定向优化百度搜狗谷歌搜索_去广告_favicon_双列](https://greasyfork.org/zh-CN/scripts/14178)
5 |
6 | ### 如何安装脚本
7 | **1. 安装脚本管理器 Tampermonkey 或暴力猴**
8 |
9 | | 浏览器 | 安装地址 |
10 | | ------------ | ------------ |
11 | | 360极速浏览器 | https://ext.chrome.360.cn/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo |
12 | | QQ浏览器 | qqbrowser://extensions/search?key=Tampermonkey |
13 | | UC浏览器 | 离线安装包 [Tampermonkey.crx](https://open-1252026789.cos.ap-beijing.myqcloud.com/Tampermonkey.crx?q-sign-algorithm=sha1&q-ak=AKID5vs71lFeyZfPygxk2FKr00awLkM2CtH9&q-sign-time=1552783829;1552785629&q-key-time=1552783829;1552785629&q-header-list=&q-url-param-list=&q-signature=f6af0eeaa1aec2eeb91ec733010f3a55f945876d&x-cos-security-token=4ea51c804f012501a972cdb19e18a2f6560452af10001) |
14 | | 遨游浏览器 | http://extension.maxthon.cn/detail/index.php?view_id=1680&category_id=10 |
15 | | Chrome浏览器 | https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo |
16 | | 火狐浏览器 | https://addons.mozilla.org/zh-CN/firefox/addon/tampermonkey/ |
17 | | Microsoft Edge | https://www.microsoft.com/store/p/tampermonkey/9nblggh5162s |
18 | | 其他浏览器 | 同UC |
19 |
20 | 安装成功后浏览器扩展栏将出现
21 |
22 | 
23 |
24 | **2. 安装 百度重定向脚本**
25 |
26 | 点击安装此脚本 [安装地址1](https://greasyfork.org/zh-CN/scripts/14178) 或 [安装地址2](https://openuserjs.org/scripts/inDarkness/AC-baidu%E9%87%8D%E5%AE%9A%E5%90%91%E4%BC%98%E5%8C%96%E7%99%BE%E5%BA%A6%E6%90%9C%E7%8B%97%E8%B0%B7%E6%AD%8C%E6%90%9C%E7%B4%A2_%E5%8E%BB%E5%B9%BF%E5%91%8A_favicon_%E5%8F%8C%E5%88%97)
27 |
28 |
29 | 
30 |
31 | 点击安装
32 |
33 | 
34 |
35 | 安装成功后脚本列表中会出现
36 |
37 | 
38 |
39 | **3. 打开百度首页**
40 |
41 | 打开Baidu,并搜索“我爱你中国”
42 | 
43 |
44 | 安装成功的一个表现就是页面已经变成了单列居中的效果,并且能看到右上角应该有一个自定义按钮,此时说明脚本已经生效并能够正常的运行,如果页面没有变化或者是自定义按钮没有出现的话,那就是安装步骤有问题
45 |
46 | 注意:360极速浏览器等浏览器可能因为处于兼容模式导致的扩展没有运行,需要切换为极速模式
47 | ps:如果还是无法运行的话,建议加群处理,群号码:912951766
48 |
49 | ### 常见问题
50 |
51 | **Q: 安装脚本成功之后没显示[自定义]按钮**
52 |
53 | A1: 请检查浏览器是否已安装Tampermonkey或暴力猴ViolentMokey或者是GreaseMonkey,推荐Tampermonkey , 并启用脚本
54 |
55 | A2: 国产双核浏览器360之类的请切换内核为高速(极速)模式
56 |
57 | A3: 是否安装了 Userscript+ : 显示当前网站所有可用的UserJS脚本 如果有,你可以先禁用这个脚本试试看
58 |
59 | A4: 换用其他浏览器尝试
60 |
61 | **Q: Chrome浏览器无法安装crx扩展**
62 |
63 | A: 请按照下列方法安装
64 |
65 | 
66 |
67 | ### 关于捐赠
68 | 本脚本不收取任何使用费用 , 如果您觉得本脚本对您有帮助,您可以通过支付宝或微信,扫描二维码,捐赠 X元,^_^,谢谢!
69 |
70 | 微信:
支付宝:
71 |
--------------------------------------------------------------------------------
/images/GM_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/images/GM_1.png
--------------------------------------------------------------------------------
/images/GM_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/images/GM_2.png
--------------------------------------------------------------------------------
/images/TM_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/images/TM_1.jpg
--------------------------------------------------------------------------------
/images/TM_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/images/TM_2.jpg
--------------------------------------------------------------------------------
/images/head.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/images/head.jpg
--------------------------------------------------------------------------------
/newcss/.htaccess:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/newcss/.user.ini:
--------------------------------------------------------------------------------
1 | open_basedir=/mnt/d/GitHome/GM_script/newcss/:/tmp/
--------------------------------------------------------------------------------
/newcss/404.html:
--------------------------------------------------------------------------------
1 |
2 | 404 Not Found
3 |
4 | 404 Not Found
5 |
nginx
6 |
7 |
--------------------------------------------------------------------------------
/newcss/baidu.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/newcss/baidu.gif
--------------------------------------------------------------------------------
/newcss/baidu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/newcss/baidu.png
--------------------------------------------------------------------------------
/newcss/bingOnePageStyle.less:
--------------------------------------------------------------------------------
1 | /*Store BingOnePageStyle*/
2 | #b_content aside {
3 | display: none;
4 | }
5 |
6 | #b_content #b_results {
7 | width: 73vw;
8 | display: flex;
9 | flex-direction: column;
10 | align-items: center;
11 | max-width: 1000px;
12 | }
13 |
14 | #b_content #b_pole {
15 | width: 73vw;
16 | max-width: 980px;
17 | margin: 0 auto;
18 | }
19 |
20 | body #b_header {
21 | width: 72vw;
22 | text-align: center;
23 | margin: 0 auto;
24 | }
25 |
26 | #b_header #sb_form{
27 | margin-left: 10vw;
28 | }
29 |
30 | body #b_content {
31 | display: flex;
32 | align-items: center;
33 | flex-direction: column;
34 | justify-content: center;
35 | margin-left: unset;
36 | padding-left: unset;
37 | }
38 |
39 | #b_content #b_results > li:not(#mfa_root) {
40 | width: 98%;
41 | }
42 |
--------------------------------------------------------------------------------
/newcss/bingTwoPageStyle.less:
--------------------------------------------------------------------------------
1 | /*Store BingTwoPageStyle*/
2 | #container #content_left .hit_top_new,
3 | #b_content aside, #b_results #mfa_root ,
4 | #b_results #adstop_gradiant_separator,
5 | .b_bza_pole{
6 | display: none !important;
7 | }
8 |
9 | #b_content #b_results {
10 | width: 73vw;
11 | grid-template-columns: repeat(2, 50%);
12 | grid-template-areas: "xmain xmain";
13 | display: grid;
14 |
15 | >* &:only-child {
16 | grid-column: 1 / -1;
17 | }
18 | }
19 |
20 | .carousel .items {
21 | max-width: 72vw;
22 | overflow-x: scroll;
23 | padding: 0 0 10px 0 !important;
24 | }
25 |
26 | #b_content #b_results > li:not(#mfa_root) {
27 | width: 98%;
28 | margin-left: 1%;
29 | }
30 |
31 | #b_results li:nth-child(even)[class*="b_ans"] {
32 | grid-column: 1 / -1;
33 | }
34 |
35 | #b_content #b_pole {
36 | max-width: 72vw;
37 | margin: 0 auto;
38 | }
39 |
40 | #b_results .b_algo .b_deep ul {
41 | width: 50%;
42 | }
43 |
44 | #b_msg, .b_pag {
45 | grid-column-end: xmain-end;
46 | grid-column-start: 1;
47 | background-color: #FFFFFF;
48 | }
49 |
50 | body #b_content {
51 | display: flex;
52 | align-items: center;
53 | flex-direction: column;
54 | justify-content: center;
55 | margin-left: unset;
56 | padding-left: unset;
57 | }
58 |
59 | body #b_header {
60 | width: 72vw;
61 | text-align: center;
62 | margin: 0 auto;
63 | }
64 |
--------------------------------------------------------------------------------
/newcss/dogeCommonStyle.less:
--------------------------------------------------------------------------------
1 | /*Store: DogeCommonStyle*/
2 | body {
3 | background-color: #f5f5f5;
4 | }
5 |
6 | .results_links_deep .result__icon {
7 | display: none;
8 | }
9 |
10 | #links_wrapper #links .results_links_deep h2 {
11 | font-weight: 600;
12 | }
13 |
14 | #links_wrapper .results--main {
15 | max-width: 670px;
16 | }
17 |
18 | #links_wrapper #links .results_links_deep {
19 | width: 670px;
20 | overflow: hidden;
21 | margin-top: 0px;
22 | margin-bottom: 25px;
23 | border-radius: 5px;
24 | background-color: #fff;
25 | box-sizing: border-box;
26 | border: 1px solid rgba(0, 0, 0, 0.1);
27 | transition: all 0.25s cubic-bezier(.23, 1, .32, 1) 0s;
28 | }
29 |
30 | #links_wrapper #links .results_links_deep .result__title a {
31 | overflow: hidden;
32 | text-overflow: ellipsis;
33 | max-width: 640px;
34 | color: #4f91de;
35 | font-size: smaller;
36 | }
37 |
38 | #links_wrapper #links .results_links_deep .result__body {
39 | padding: 12px 20px !important;
40 | }
41 |
42 | #links_wrapper #links .results_links_deep:hover {
43 | border: 1px solid rgba(0, 0, 0, 0.3);
44 | box-shadow: 0 0 1px grey;
45 | -webkit-box-shadow: 0 0 1px grey;
46 | -moz-box-shadow: 0 0 1px gray;
47 | }
48 |
49 | #links_wrapper #links .results_links_deep h2 {
50 | background-color: #f8f8f8;
51 | margin: -12px -20px 0px -20px;
52 | padding: 8px 20px 5px;
53 | border-radius: 5px 5px 0px 0px;
54 | }
55 |
56 | #links_wrapper #links .results_links_deep h2 a:hover:after {
57 | left: 0;
58 | width: 100%;
59 | -webkit-transition: width 350ms;
60 | -moz-transition: width 350ms;
61 | transition: width 350ms;
62 | }
63 |
64 | #links_wrapper #links .results_links_deep h2 a:after {
65 | content: "";
66 | position: absolute;
67 | border-bottom: 2px solid #4f91de;
68 | bottom: 1px;
69 | left: 100%;
70 | width: 0;
71 | -webkit-transition: width 350ms, left 350ms;
72 | -moz-transition: width 350ms, left 350ms;
73 | transition: width 350ms, left 350ms;
74 | }
75 |
76 | #links_wrapper #links .results_links_deep h2 a:visited,
77 | #links_wrapper #links .results_links_deep h2 a:visited strong {
78 | color: #660099;
79 | }
80 |
81 | #links_wrapper #links .results_links_deep h2 a:visited:hover:after,
82 | #links_wrapper #links .results_links_deep h2 a:visited:hover:after {
83 | left: 0;
84 | width: 100%;
85 | -webkit-transition: width 350ms;
86 | -moz-transition: width 350ms;
87 | transition: width 350ms;
88 | }
89 |
90 | /* SearchItmes Bottom to Top ani */
91 | #links_wrapper #links {
92 | animation-name: ani_topTobuttom;
93 | animation-duration: .3s;
94 | animation-timing-function: ease;
95 | }
96 |
97 | /* SearchBar Left to Right ani */
98 | #header_wrapper .header__search-wrap {
99 | animation-name: ani_leftToright;
100 | animation-duration: .3s;
101 | animation-timing-function: ease-out;
102 | }
103 |
104 | .AC.sp-separator {
105 | margin-top: -15px;
106 | }
107 |
--------------------------------------------------------------------------------
/newcss/dogeOnePageStyle.less:
--------------------------------------------------------------------------------
1 | /*Store: DogeOnePageStyle*/
2 | .js-sidebar-ads, #organic-module, .pinned-to-bottom {
3 | display: none;
4 | }
5 |
6 | .js-result-hidden-el {
7 | display: none !important;
8 | }
9 |
10 | .site-wrapper #web_content_wrapper .cw {
11 | justify-content: center;
12 | display: flex;
13 | max-width: unset;
14 | }
15 |
16 | @media screen and (min-width: 1000px) {
17 | #links_wrapper #links .results_links_deep {
18 | width: 100%;
19 | }
20 | }
21 |
22 | #header_wrapper #header,
23 | #web_content_wrapper #links_wrapper .search-filters-wrap,
24 | #web_content_wrapper #links_wrapper .results--message {
25 | justify-content: center;
26 | display: grid;
27 | }
28 |
29 | #header_wrapper #header {
30 | max-width: unset;
31 | }
32 |
33 | #header_wrapper #header .header__search-wrap {
34 | width: 500px;
35 | }
36 |
37 | #links_wrapper {
38 | display: inline-flex;
39 | justify-content: center;
40 | padding-left: 0;
41 | }
42 |
43 | #links_wrapper .results--main {
44 | float: unset;
45 | max-width: 860px;
46 | }
47 |
48 | #links_wrapper .results--sidebar {
49 | min-width: unset;
50 | margin: unset;
51 | }
52 |
53 | .body--serp .footer {
54 | display: flex;
55 | justify-content: center;
56 | padding-left: unset;
57 | }
58 |
--------------------------------------------------------------------------------
/newcss/dogeTwoPageStyle.less:
--------------------------------------------------------------------------------
1 | /*Store: DogeTwoPageStyle*/
2 | .js-sidebar-ads,
3 | #links_wrapper .results--sidebar,
4 | #organic-module,
5 | .pinned-to-bottom {
6 | display: none;
7 | }
8 |
9 | .js-result-hidden-el {
10 | display: none !important;
11 | }
12 |
13 | .site-wrapper #web_content_wrapper .cw {
14 | justify-content: center;
15 | display: flex;
16 | max-width: unset;
17 | margin-left: -150px;
18 | }
19 |
20 | #header_wrapper #header,
21 | #web_content_wrapper #links_wrapper .search-filters-wrap,
22 | #web_content_wrapper #links_wrapper .results--message {
23 | justify-content: center;
24 | display: grid;
25 | }
26 |
27 | #header_wrapper #header {
28 | max-width: unset;
29 | }
30 |
31 | #header_wrapper #header .header__search-wrap {
32 | width: 500px;
33 | }
34 |
35 | #links_wrapper {
36 | display: inline-flex;
37 | justify-content: center;
38 | }
39 |
40 | #links_wrapper .results--main {
41 | float: unset;
42 | max-width: unset;
43 | }
44 |
45 | #links_wrapper .results--sidebar {
46 | min-width: unset;
47 | margin: unset;
48 | }
49 |
50 | #links_wrapper .results--main #links {
51 | width: 80vw;
52 | /* This may cause Page failed */
53 | display: grid;
54 | grid-template-columns: repeat(2, 50%);
55 | grid-template-areas: "xmain xmain";
56 | }
57 |
58 | #links_wrapper .results--main #links .results_links_deep {
59 | width: unset;
60 | margin-right: 15px;
61 | }
62 |
63 | #links .result--more, #links .result--sep {
64 | grid-column-start: 1;
65 | grid-column-end: xmain-end;
66 | width: unset !important;
67 | padding: 0;
68 | padding-right: 15px;
69 | }
70 |
71 | #links .result--sep {
72 | margin-bottom: 2em;
73 | }
74 |
75 | .body--serp .footer {
76 | display: flex;
77 | justify-content: center;
78 | padding-left: unset;
79 | }
80 |
--------------------------------------------------------------------------------
/newcss/duckCommonStyle.less:
--------------------------------------------------------------------------------
1 | /*Store: DuckDuckGoCommonStyle*/
2 | body {
3 | background-color: #f5f5f5;
4 | }
5 |
6 | #react-layout .react-results--main {
7 | max-width: 95%;
8 | }
9 |
10 | #react-layout li {
11 | width: 95%;
12 | overflow: hidden;
13 | margin-top: 0px;
14 | margin-bottom: 25px;
15 | border-radius: 5px;
16 | box-sizing: border-box;
17 | border: 1px solid rgba(0, 0, 0, 0.1);
18 | transition: all 0.25s cubic-bezier(.23, 1, .32, 1) 0s;
19 | }
20 |
21 | .dark-bg #react-layout li article {
22 | background-color: #333;
23 | }
24 |
25 | .dark-bg #react-layout li article h2 {
26 | background-color: #345;
27 | }
28 |
29 | .dark-bg #react-layout li article h2 a {
30 | color: #CCCCCC;
31 | }
32 |
33 | .dark-bg #react-layout li article h2 a:visited {
34 | color: #b7663e;
35 | }
36 |
37 | #react-layout li article article {
38 | padding: 18px;
39 | }
40 |
41 | #react-layout li article h2 a {
42 | overflow: hidden;
43 | text-overflow: ellipsis;
44 | max-width: 640px;
45 | color: #006bff;
46 | font-size: smaller;
47 | display: inline-flex;
48 | }
49 |
50 | #react-layout li article .result__body {
51 | padding: 12px 20px !important;
52 | }
53 |
54 | #react-layout li:hover {
55 | border: 1px solid rgba(0, 0, 0, 0.3);
56 | box-shadow: 0 0 1px grey;
57 | -webkit-box-shadow: 0 0 1px grey;
58 | -moz-box-shadow: 0 0 1px gray;
59 | }
60 |
61 | #react-layout li article h2 a:hover:after {
62 | left: 0;
63 | width: 100%;
64 | transition: width 350ms;
65 | }
66 |
67 | #react-layout li article h2 a:after {
68 | content: "";
69 | position: absolute;
70 | border-bottom: 2px solid #4f91de;
71 | bottom: 1px;
72 | left: 100%;
73 | width: 0;
74 | transition: width 350ms, left 350ms;
75 | }
76 |
77 | #react-layout li article h2 a:visited,
78 | #react-layout li article h2 a:visited strong {
79 | color: #660099;
80 | }
81 |
82 | #react-layout li article h2 a:visited:hover:after,
83 | #react-layout li article h2 a:visited:hover:after {
84 | left: 0;
85 | width: 100%;
86 | -webkit-transition: width 350ms;
87 | -moz-transition: width 350ms;
88 | transition: width 350ms;
89 | }
90 |
91 | /* SearchItmes Bottom to Top ani */
92 | #react-layout li {
93 | animation-name: ani_topTobuttom;
94 | animation-duration: .3s;
95 | animation-timing-function: ease;
96 | }
97 |
98 | /* SearchBar Left to Right ani */
99 | #header_wrapper .header__search-wrap {
100 | animation-name: ani_leftToright;
101 | animation-duration: .3s;
102 | animation-timing-function: ease-out;
103 | }
104 | body{
105 | /**replace Duck font**/
106 | font-family: unset;
107 | }
108 | li article {
109 | h2, h3{
110 | font-weight: bold;
111 |
112 | &::before{
113 | display: none;
114 | }
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/newcss/duckOnePageStyle.less:
--------------------------------------------------------------------------------
1 | /*Store: DuckDuckGoOnePageStyle*/
2 | .js-sidebar-ads, #organic-module, .pinned-to-bottom {
3 | display: none;
4 | }
5 |
6 | .js-result-hidden-el {
7 | display: none !important;
8 | }
9 |
10 | .site-wrapper #web_content_wrapper .cw {
11 | justify-content: center;
12 | display: flex;
13 | max-width: unset;
14 | margin-left: -150px;
15 | }
16 |
17 | #header_wrapper #header,
18 | #web_content_wrapper #react-layout.search-filters-wrap,
19 | #web_content_wrapper #react-layout.results--message {
20 | justify-content: center;
21 | display: grid;
22 | }
23 |
24 | #header_wrapper #header {
25 | max-width: unset;
26 | }
27 |
28 |
29 | #header_wrapper #header .header__search-wrap {
30 | width: 500px;
31 | }
32 |
33 | #react-layout{
34 | display: inline-flex;
35 | justify-content: center;
36 | }
37 |
38 | #react-layout.react-results--main {
39 | float: unset;
40 | }
41 |
42 | .body--serp .footer {
43 | display: flex;
44 | justify-content: center;
45 | padding-left: unset;
46 | }
47 |
--------------------------------------------------------------------------------
/newcss/duckTwoPageStyle.less:
--------------------------------------------------------------------------------
1 | /*Store: DuckDuckGoTwoPageStyle*/
2 | .js-sidebar-ads,
3 | #react-layout .results--sidebar,
4 | #organic-module,
5 | .pinned-to-bottom {
6 | display: none;
7 | }
8 |
9 | .js-result-hidden-el {
10 | display: none !important;
11 | }
12 |
13 | .site-wrapper #web_content_wrapper .cw {
14 | justify-content: center;
15 | display: flex;
16 | max-width: unset;
17 | margin-left: -150px;
18 | }
19 |
20 | #header_wrapper #header,
21 | #web_content_wrapper #react-layout .search-filters-wrap,
22 | #web_content_wrapper #react-layout .results--message {
23 | justify-content: center;
24 | display: grid;
25 | }
26 |
27 | #header_wrapper #header {
28 | max-width: unset;
29 | }
30 |
31 | #header_wrapper #header .header__search-wrap {
32 | width: 500px;
33 | }
34 |
35 | #react-layout {
36 | display: inline-flex;
37 | justify-content: center;
38 | }
39 |
40 | #react-layout .react-results--main {
41 | float: unset;
42 | max-width: unset;
43 | }
44 |
45 | #react-layout .results--sidebar {
46 | min-width: unset;
47 | margin: unset;
48 | }
49 |
50 | section[data-area="sidebar"] {
51 | display: none;
52 | }
53 |
54 | #react-layout .react-results--main {
55 | width: 80vw;
56 | /* This may cause Page failed */
57 | display: grid;
58 | grid-template-columns: repeat(2, 50%);
59 | grid-template-areas: "xmain xmain";
60 | }
61 |
62 | #react-layout .react-results--main li {
63 | width: unset;
64 | margin-right: 15px;
65 |
66 | &:only-child {
67 | grid-column: 1 / -1;
68 | }
69 | }
70 |
71 | .body--serp .footer {
72 | display: flex;
73 | justify-content: center;
74 | padding-left: unset;
75 | }
76 |
--------------------------------------------------------------------------------
/newcss/googleOnePageStyle.less:
--------------------------------------------------------------------------------
1 | /**Store GoogleOnePageStyle**/
2 | div[two-father] {
3 | position: relative;
4 | float: unset;
5 | width: 800px;
6 | margin: 0 auto;
7 | align-items: stretch;
8 | justify-items: stretch;
9 | grid-gap: 20px;
10 | }
11 |
12 | #rso .jUmkFb:hover {
13 | margin-bottom: 30px;
14 | margin-left: 20px;
15 | }
16 |
17 | div[two-child] {
18 | width: 100% !important;
19 | height: 100%;
20 | overflow: hidden;
21 | padding: 0px 20px 15px;
22 | margin-top: 0px;
23 | border-radius: 5px;
24 | background-color: #fff;
25 | box-sizing: border-box;
26 | transition: all 0.25s cubic-bezier(.23, 1, .32, 1) 0s;
27 | }
28 |
29 | #rso > div {
30 | width: 100%;
31 | }
32 |
33 | .search > #ires #rso > div[two-child] {
34 | max-width: unset;
35 | }
36 |
37 | div[two-child] {
38 | width: 100% !important;
39 | overflow: hidden;
40 | margin-bottom: 10px;
41 | }
42 |
43 | #main #rcnt {
44 | max-width: unset;
45 | }
46 |
47 | body #appbar, body .rhscol, body #top_nav, body #fbar {
48 | min-width: unset;
49 | }
50 |
51 | #rso g-scrolling-carousel {
52 | margin: unset;
53 | margin-left: 20px;
54 | }
55 |
56 | .col {
57 | width: 100% !important;
58 | }
59 |
60 | .col #center_col {
61 | width: 100% !important;
62 | margin-left: unset !important;
63 | }
64 |
65 | .srp .big #tsf {
66 | width: 833px;
67 | }
68 |
69 | /**search box align center**/
70 | .srp form {
71 | margin: 0 auto;
72 | }
73 |
74 | #top_nav {
75 | min-width: unset;
76 | }
77 |
78 | /**video box align center**/
79 | g-section-with-header {
80 | text-align: center;
81 | }
82 |
83 | #hdtb #hdtb-msb {
84 | justify-content: center;
85 | width: 100%;
86 | }
87 |
88 | #hdtb #hdtb-msb-vis {
89 | margin-left: -169px;
90 | }
91 |
92 | .AC.sp-separator {
93 | margin-top: -20px;
94 | width: 800px;
95 | margin-left: auto;
96 | margin-right: auto;
97 | }
98 |
99 | .FxLDp {
100 | padding: unset;
101 | }
102 |
103 | #main #cnt, #cnt #center_col, #cnt #foot {
104 | grid-column: 4/span 12;
105 | width: calc(36.3vw + 525px);
106 | transition: all 1.2s ease-in-out;
107 | animation-name: ani_hideToShow;
108 | animation-duration: 0.2s;
109 | animation-timing-function: ease;
110 | }
111 |
112 | @media screen and (max-width: 1440px) {
113 | .RNNXgb {
114 | width: 80% !important;
115 | }
116 | }
117 |
118 | @media screen and (min-width: 1675px) {
119 | .srp {
120 | --center-abs-margin: 22vw;
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/newcss/googleTwoPageStyle.less:
--------------------------------------------------------------------------------
1 | /**Store GoogleTwoPageStyle**/
2 | div[two-father] {
3 | position: relative;
4 | float: unset;
5 | width: unset;
6 | min-width: 800px;
7 | }
8 | div[two-child] {
9 | width: 100% !important;
10 | height: 100%;
11 | overflow: hidden;
12 | padding: 10px 20px 15px;
13 | margin-top: 0;
14 | margin-bottom: 0;
15 | border-radius: 5px;
16 | background-color: #fff;
17 | box-sizing: border-box;
18 | transition: all 0.1s ease-in;
19 |
20 | div[two-child]{
21 | width: unset !important;
22 | }
23 |
24 | &:only-child {
25 | grid-column: 1 / -1;
26 | }
27 |
28 | &:last-child:nth-child(odd) {
29 | grid-column: 1 / -1;
30 | }
31 | }
32 |
33 | .search > #ires #rso div[two-child] {
34 | max-width: unset;
35 | }
36 | .XqFnDf{
37 | display: none;
38 | }
39 | #main #rcnt #rhs {
40 | display: none;
41 | }
42 |
43 | #main #rcnt {
44 | display: grid;
45 | max-width: unset;
46 | }
47 | .f6F9Be{
48 | position: relative;
49 | }
50 |
51 | #main #cnt, #cnt #center_col, #cnt #foot, .HdCKGe {
52 | width: calc(54vw + 360px);
53 | }
54 |
55 | body #appbar, body .rhscol, body #top_nav, body #fbar {
56 | min-width: unset;
57 | }
58 |
59 | #rso .COEoid,
60 | #kp-wp-tab-overview > div {
61 | margin: unset;
62 | }
63 |
64 | .col {
65 | width: 100% !important;
66 | }
67 |
68 | .col #center_col {
69 | width: 100% !important;
70 | margin-left: unset !important;
71 | }
72 |
73 | div[two-father], #kp-wp-tab-overview {
74 | display: grid;
75 | grid-template-columns: repeat(2, 50%);
76 | grid-template-areas: "xmain xmain";
77 | grid-gap: 20px !important;
78 | margin-bottom: 20px;
79 | justify-items: stretch;
80 | align-items: stretch;
81 | width: 100%;
82 |
83 | div[two-father]{
84 | min-width: unset;
85 | display: unset;
86 |
87 | div[two-child] {
88 | height: unset;
89 | }
90 | }
91 | }
92 |
93 | #rso > div[two-child] ~ div:not(div[two-child]),
94 | #rcnt #botstuff > div[two-child] ~ div:not(div[two-child]) {
95 | margin-bottom: 10px;
96 | }
97 |
98 | .AC.sp-separator {
99 | margin-top: 10px;
100 | margin-left: auto;
101 | margin-right: auto;
102 | }
103 |
104 | /**search box align center**/
105 | .srp form {
106 | margin: 0 auto;
107 | }
108 |
109 | g-section-with-header {
110 | text-align: center;
111 | }
112 |
113 | #hdtb #hdtb-msb {
114 | justify-content: center;
115 | width: 100%;
116 | }
117 |
118 | #hdtb #hdtb-msb-vis {
119 | margin-left: -169px;
120 | }
121 |
--------------------------------------------------------------------------------
/newcss/haosouCommonStyle.less:
--------------------------------------------------------------------------------
1 | body {
2 | background-color: #f5f5f5;
3 | }
4 |
5 | #container{
6 | .result{
7 |
8 | >li{
9 | z-index: 1;
10 | width: 670px;
11 | padding: 12px 20px !important;
12 | margin-top: 0;
13 | margin-bottom: 25px;
14 | border-radius: 5px;
15 | background-color: #fff;
16 | box-sizing: border-box;
17 | border: 1px solid rgba(0, 0, 0, 0.1);
18 | transition: all 0.25s cubic-bezier(.23, 1, .32, 1) 0s;
19 | overflow: hidden;
20 |
21 | &:hover {
22 | border: 1px solid rgba(0, 0, 0, 0.3);
23 | box-shadow: 0 0 1px grey;
24 | }
25 | }
26 | }
27 |
28 | #side{
29 | left: 200px;
30 | padding: 20px;
31 | background-color: white;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/newcss/haosouOnePageStyle.less:
--------------------------------------------------------------------------------
1 | #header {
2 | #g-hd-nav{
3 | display: flex;
4 | justify-content: center;
5 | float: unset;
6 | margin-left: -150px;
7 | }
8 | }
9 | #tabs-wrap{
10 | display: flex;
11 | justify-content: center;
12 | margin-right: 420px;
13 | }
14 |
15 | #container{
16 | display: flex;
17 | justify-content: center;
18 | padding-left: unset;
19 |
20 | #main {
21 | width: 650px;
22 |
23 | .result{
24 |
25 | >li{
26 | width: 770px;
27 | }
28 | }
29 | }
30 | #side{
31 | left: 200px;
32 | padding: 20px;
33 | background-color: white;
34 | }
35 | }
36 |
37 | #warper {
38 | .mod-relation{
39 | padding-left: unset;
40 | position: relative;
41 |
42 | #rs{
43 | width: 770px;
44 | position: relative;
45 | left: 50%;
46 | transform: translateX(-68%);
47 | }
48 | }
49 | #page{
50 | display: flex;
51 | justify-content: center;
52 | margin-left: -200px;
53 | }
54 | }
55 |
56 | #footer{
57 | display: flex;
58 | justify-content: center;
59 | margin-left: -200px;
60 | }
61 |
--------------------------------------------------------------------------------
/newcss/haosouTwoPageStyle.less:
--------------------------------------------------------------------------------
1 | #header {
2 | #g-hd-nav{
3 | display: flex;
4 | justify-content: center;
5 | float: unset;
6 | margin-left: -150px;
7 | }
8 | }
9 | #tabs-wrap{
10 | display: flex;
11 | justify-content: center;
12 | margin-right: 420px;
13 | }
14 |
15 | #container{
16 | display: flex;
17 | justify-content: center;
18 | padding-left: unset;
19 |
20 | #main {
21 | width: 78vw;
22 |
23 | .result{
24 | display: grid;
25 | grid-template-columns: repeat(2, 50%);
26 | grid-template-areas: "xmain xmain";
27 | grid-column-gap: 20px;
28 |
29 | >li{
30 | width: 100%;
31 | }
32 | }
33 | }
34 | #side{
35 | display: none;
36 | }
37 | }
38 |
39 | #warper {
40 | .mod-relation{
41 | padding-left: unset;
42 | position: relative;
43 |
44 | #rs{
45 | width: 770px;
46 | position: relative;
47 | left: 50%;
48 | transform: translateX(-68%);
49 | }
50 | }
51 | #page{
52 | display: flex;
53 | justify-content: center;
54 | margin-left: -200px;
55 | }
56 | }
57 |
58 | #footer{
59 | display: flex;
60 | justify-content: center;
61 | margin-left: -200px;
62 | }
63 |
--------------------------------------------------------------------------------
/newcss/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ACG
6 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/newcss/sogouCommonStyle.css:
--------------------------------------------------------------------------------
1 | /*Store: SogouCommonStyle*/
2 | body {
3 | background-color: #f5f5f5;
4 | }
5 |
6 | #biz_tip_box_tuiguang_float {
7 | display: none;
8 | }
9 |
10 | .top-bar li {
11 | line-height: 35px;
12 | }
13 |
14 | .top-bar .sogou-set-box a {
15 | display: inline-block;
16 | }
17 |
18 | #main .results {
19 | width: 100% !important;
20 | }
21 |
22 | #main .results > div {
23 | width: 100% !important;
24 | overflow: hidden;
25 | padding: 12px 20px !important;
26 | margin-top: 0px;
27 | margin-bottom: 25px;
28 | border-radius: 5px;
29 | background-color: #fff;
30 | box-sizing: border-box;
31 | border: 1px solid rgba(0, 0, 0, 0.1);
32 | transition: all 0.25s cubic-bezier(.23, 1, .32, 1) 0s;
33 | }
34 |
35 | .results .rb a,
36 | .results .vrwrap a,
37 | .results .rb h3 a,
38 | .results .vrwrap h3 a {
39 | position: relative;
40 | }
41 |
42 | #main .results > div:hover {
43 | border: 1px solid rgba(0, 0, 0, 0.3);
44 | box-shadow: 0 0 1px grey;
45 | -webkit-box-shadow: 0 0 1px grey;
46 | -moz-box-shadow: 0 0 1px gray;
47 | }
48 |
49 | #main .results > div h3 {
50 | background-color: #f8f8f8;
51 | margin: -12px -20px 10px -20px;
52 | padding: 8px 20px 5px;
53 | border-radius: 5px 5px 0px 0px;
54 | }
55 |
56 | a, a strong {
57 | text-decoration: none;
58 | }
59 |
60 | #main .results > div a strong,
61 | #main .results > div h3 a strong {
62 | text-decoration: none;
63 | }
64 |
65 | #main .results > div a:hover:after,
66 | #main .results > div h3 a:hover:after {
67 | left: 0;
68 | width: 100%;
69 | -webkit-transition: width 350ms;
70 | -moz-transition: width 350ms;
71 | transition: width 350ms;
72 | }
73 |
74 | #main .results > div a:after,
75 | #main .results > div h3 a:after {
76 | content: "";
77 | position: absolute;
78 | border-bottom: 2px solid #3476d2;
79 | bottom: 1px;
80 | left: 100%;
81 | width: 0;
82 | -webkit-transition: width 350ms, left 350ms;
83 | -moz-transition: width 350ms, left 350ms;
84 | transition: width 350ms, left 350ms;
85 | }
86 |
87 | #main .results > div h3 a:visited,
88 | #main .results > div h3 a:visited strong,
89 | #main .results > div h3 h3 a:visited,
90 | #main .results > div h3 h3 a:visited strong {
91 | color: #660099;
92 | }
93 |
94 | #main .results > div h3 a:visited:hover:after,
95 | #main .results > div h3 h3 a:visited:hover:after {
96 | left: 0;
97 | width: 100%;
98 | -webkit-transition: width 350ms;
99 | -moz-transition: width 350ms;
100 | transition: width 350ms;
101 | }
102 |
103 | body #pagebar_container a {
104 | background-color: white;
105 | }
106 |
107 | /* SearchItmes Bottom to Top ani */
108 | #main .results {
109 | animation-name: ani_topTobuttom;
110 | animation-duration: .3s;
111 | animation-timing-function: ease;
112 | }
113 |
114 | /* SearchBar Left to Right ani */
115 | .wrap .header-box {
116 | animation-name: ani_leftToright;
117 | animation-duration: .3s;
118 | animation-timing-function: ease-out;
119 | }
120 |
--------------------------------------------------------------------------------
/newcss/sogouOnePageStyle.css:
--------------------------------------------------------------------------------
1 | /*Store: SogouOnePageStyle*/
2 | .wrap .wrapper .right {
3 | display: none;
4 | }
5 |
6 | .wrap .wrapper {
7 | padding-left: unset;
8 | }
9 |
10 | .wrap > .wrapper #main, .wrap > .hintBox, .wrap > .p {
11 | width: 55vw;
12 | max-width: 55vw;
13 | min-width: 850px;
14 | position: relative;
15 | margin: 0 auto;
16 | float: unset;
17 | padding-right: unset;
18 | padding-left: unset;
19 | }
20 |
21 | #main .results > div {
22 | width: 100% !important;
23 | }
24 |
25 | .wrap .header .header-box {
26 | min-width: 850px;
27 | width: 50vw;
28 | margin: 0 auto;
29 | }
30 |
31 | .wrap .header .header-box a.logo {
32 | left: unset;
33 | }
34 |
35 | /*search engine jump*/
36 | body #sej-container {
37 | padding-left: calc(12% - 113px) !important;
38 | }
39 |
--------------------------------------------------------------------------------
/newcss/sogouTwoPageStyle.css:
--------------------------------------------------------------------------------
1 | /*Store: SogouTwoPageStyle*/
2 | .wrap .wrapper .right {
3 | display: none;
4 | }
5 |
6 | .wrap .wrapper {
7 | padding-left: unset;
8 | width: 75vw;
9 | }
10 |
11 | .wrap > .wrapper #main, .wrap > .hintBox, .wrap > .p {
12 | max-width: unset;
13 | width: 100%;
14 | }
15 |
16 | #main .results {
17 | width: 100%;
18 | display: grid;
19 | grid-template-columns: repeat(2, 50%);
20 | grid-template-areas: "xmain xmain";
21 | }
22 |
23 | #main .results > div {
24 | margin-left: 5px;
25 | margin-right: 15px;
26 | width: unset !important;
27 |
28 | &:only-child {
29 | grid-column: 1 / -1;
30 | }
31 | }
32 |
33 | .wrap .header .header-box {
34 | min-width: 850px;
35 | width: 50vw;
36 | margin: 0 auto;
37 | }
38 |
39 | .wrap .header .header-box a.logo {
40 | left: unset;
41 | }
42 |
43 | /*search engine jump*/
44 | body #sej-container {
45 | padding-left: calc(12% - 113px) !important;
46 | }
47 |
--------------------------------------------------------------------------------
/newcss/sogoukey.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/newcss/sogoukey.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/notepad/Notepad.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/notepad/Notepad.java
--------------------------------------------------------------------------------
/notepad/Notepad.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/notepad/Notepad.py:
--------------------------------------------------------------------------------
1 | 国内在三维地震数据可视化领域的研究起步较晚,直到上世纪90年代,国内的高校和研究所才开始相关技术的研究,但发展速度很快。中科院计算所、中科院软件所、清华大学计算机系、西北大学可视化研究所、浙江大学CAD国家重点实验室等都在三维地震数据可视化研究方面取得了丰富成果。成熟的软件主要有浙江大学开发的通用可视化系统平台GIVENS[24]、顶点视算有限公司开发的TGis地质评价系统[25]、石油物探局开发的3DV 软件[26]、双狐软件公司开发的三维地震微机解释软件[27]等。相比于国外成熟优秀的三维地质建模及可视化软件系统,国内的软件还存在很大的差距[28],对三维地震可视化技术的研究也偏向于相关算法的研究。目前应用于三维地震可视化领域的软件种类繁多、发展迅速,竞争也越来越激烈[29]。地质勘探技术的快速发展带来了更为庞大的三维地震数据资料,导致三维可视化过程中的绘制速度下降,这就对体绘制算法提出了更高的要求。国外的的三维地震可视化软件虽然功能全面、运算速度快、交互性好,但价格高昂。因此,有必要开发具有自主创新、自主知识产权、便宜实用的三维地震可视化软件系统,并在此基础上做有益的探索和研究。
--------------------------------------------------------------------------------
/notepad/Notepad2.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/notepad/Notepad2.html
--------------------------------------------------------------------------------
/notepad/Notepad2.js:
--------------------------------------------------------------------------------
1 | function getTrueFatherChild(preNode, curNode, fatherNode) {
2 | const curPossible = curNode.offsetHeight > 0 && fatherNode.offsetHeight / curNode.offsetHeight > 1.5
3 | const anotherPossible = [...fatherNode.children].some(one => {
4 | return one !== curNode && one.offsetHeight > 0 && one.offsetHeight / curNode.offsetHeight > 5;
5 | })
6 |
7 | if (curPossible) {
8 | if (anotherPossible) {
9 | console.log(curNode, fatherNode)
10 | markFatherChild(curNode, fatherNode)
11 | return fatherNode
12 | } else {
13 | markFatherChild(preNode, curNode)
14 | return curNode
15 | }
16 | } else {
17 | return null
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/notepad/Notepad3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | $Title$
6 |
7 |
8 | $END$
9 |
10 |
11 |
--------------------------------------------------------------------------------
/notepad/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/langren1353/GM_script/0358b043eca97821c3b1dd32c4e9c65ccce0d0ab/notepad/__init__.py
--------------------------------------------------------------------------------
/notepad/notepad2.css:
--------------------------------------------------------------------------------
1 | .invoce-failed{
2 | color: white !important;
3 | background-color: #a5a5a5;
4 | }
5 | .invoce-processing{
6 | color: black !important;
7 | background-color: #ffeab1;
8 | }
9 | .invoce-finishi{
10 | color: black !important;
11 | background-color: #faaa63;
12 | }
13 |
--------------------------------------------------------------------------------
/notepad/notepad2.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 |
4 |
--------------------------------------------------------------------------------
/rebuild.sh:
--------------------------------------------------------------------------------
1 | # sh
2 |
3 | echo "这个就是linux下运行的"
4 |
5 | cd ./ac-baidu/doc/ && npm run docs:build && cd -
6 | ./ac-baidu/doc/rebuild.sh
7 | ./ac-baidu/fastapi/rebuild.sh
8 |
9 | echo '完事之后,docker compose更新即可'
10 |
--------------------------------------------------------------------------------
/temp/SearchBlock.user.js:
--------------------------------------------------------------------------------
1 | // ==UserScript==
2 | // @name AC-有道取词+翻译-库文件
3 | // @description 库文件,不能直接调用的
4 | // @version 1.8
5 | // @namespace youdao
6 | // @author AC
7 | // @include *
8 | // @icon https://gitee.com/remixAC/GM_script/raw/master/images/head.jpg
9 | // @run-at document-end
10 | // @connect xbaidu.ntaow.com
11 | // @grant GM_xmlhttpRequest
12 | // @note V1.0 2019-02-21 用于跟随搜狗的API更新
13 | // ==/UserScript==
14 | var SoGouKey = "b33bf8c58706155663d1ad5dba4192dc";
15 | GM_xmlhttpRequest({
16 | method: "GET",
17 | url: "http://xbaidu.ntaow.com/newcss/sogoukey.php",
18 | onload: function(res) {
19 | SoGouKey = res.responseText;
20 | console.log(SoGouKey);
21 | }
22 | });
23 |
--------------------------------------------------------------------------------
/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 组合式API
8 |
9 |
10 |
11 | {{ count }}
12 |
13 |
14 |
15 |
46 |
47 |
--------------------------------------------------------------------------------
/test2.js:
--------------------------------------------------------------------------------
1 | var timeCostFunc = (delayTime) => {
2 | return new Promise((resolve, reject) => {
3 | setTimeout(() => {
4 | resolve({ msg: '返回的res2' })
5 | }, delayTime)
6 | })
7 | }
8 |
9 | var dealFunc = () => {
10 | return new Promise((resolve, reject) => {
11 | timeCostFunc(3000).then(res => {
12 | console.log("请求结束")
13 | console.log(res.msg)
14 | })
15 | })
16 | }
17 |
18 | var trueFunc = async () => {
19 | console.log("调用start");
20 | await dealFunc()
21 | console.log("调用end");
22 | }
23 |
24 | trueFunc()
25 |
26 |
27 | request
--------------------------------------------------------------------------------
/todo.md:
--------------------------------------------------------------------------------
1 | - [ ] 修复谷歌图片替换模式问题
2 | - [ ] 未来:添加默认UI,然后给“更多按钮”
3 | -
4 |
--------------------------------------------------------------------------------
/work.md:
--------------------------------------------------------------------------------
1 | - [ ] 待修复手机页面上的兼容问题
2 | - [x] 增加屏蔽数据的导出功能-->大编辑框
3 | - [x] 对于“资讯”和“视频”两个模块:无编号功能、未居中
4 | - [?] 自动翻页下:google搜索结果“足球 知乎”网页错乱 ? 似乎没有图片这个内容,待排查
5 |
6 | - [x] 修复在扩展下的问题--
7 | - [x] 更换QQ群的地址为新的地址
8 |
9 | - [x] 二狗的 favicon的图标地址似乎不对
10 |
11 | - [x] 根据grid的特性,对行占用进行优化,但是如果配置不好可能出现三个横行的问题
12 | - [x] 二狗中 切换双列没有 && 护眼色效果无效
13 | - [x] 为什么百度首页又开始闪烁了 = 修改了不加载的问题,但是可能出现自动出结果时的异常
14 |
15 | - [x] 为什么已经访问的连接颜色没有发生变化
16 | ==> 原因是因为hover的时候网址才发生变化
17 |
18 | - [x] 扩展上:为什么翻页的功能失效了
19 | ==> 之前移除了翻页功能,现在已经恢复
20 |
21 | - [x] 为什么Edge上的保存功能似乎失效了
22 | ==> 目前旧版edge的TamperMonkey支持不是很好,保存有时候不生效
23 |
24 | - [x] 似乎扩展上的数据是localhost?
25 | ==> 已修复
26 |
27 | - [ ] 似乎百度学术的搜索结果都看不见了
28 | - [ ] 似乎谷歌在搜索特定关键字时具有左侧栏:
29 |
--------------------------------------------------------------------------------