-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
150 changed files
with
1,915 additions
and
1,063 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
declare type TComponentPropsWithoutRef<T extends React.ElementType, P = any> = ( | ||
Omit<React.ComponentPropsWithoutRef<T>, keyof P> | ||
); | ||
|
||
declare type TComponentPropsWithoutRefWithAs<T extends React.ElementType, P = any> = ( | ||
TComponentPropsWithoutRef<T, P> & { | ||
as?: T; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
import type webpack from 'webpack'; | ||
import { dev } from '../../config'; | ||
import svgLoader from '../loaders/svg-loader'; | ||
|
||
export const resource: webpack.RuleSetRule = { | ||
test: /\.(gif|jpg|png|svg|webp)$/i, | ||
type: 'asset/resource', | ||
resourceQuery: { not: /svgr/ }, | ||
generator: { emit: false } | ||
}; | ||
|
||
export const source: webpack.RuleSetRule = { | ||
test: /\.txt$/i, | ||
test: /\.(html|txt)$/i, | ||
type: 'asset/source' | ||
}; | ||
|
||
export const svg: webpack.RuleSetRule = { | ||
export const svgr: webpack.RuleSetRule = { | ||
test: /\.svg$/i, | ||
issuer: /\.[jt]sx?$/, | ||
resourceQuery: /svgr/, | ||
use: [svgLoader] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,3 +139,20 @@ PERFORMANCE OF THIS SOFTWARE. | |
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/** @preserve | ||
* Counter block mode compatible with Dr Brian Gladman fileenc.c | ||
* derived from CryptoJS.mode.CTR | ||
* Jan Hruby [email protected] | ||
*/ | ||
|
||
/** @preserve | ||
(c) 2012 by Cédric Mesnil. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// ==UserScript== | ||
// @name Libel | ||
// @version 3.5.0 | ||
// @version 3.6.0 | ||
// @author kitce <[email protected]> | ||
// @description Label users on LIHKG | ||
// @homepage https://kitce.github.io/libel | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "libel", | ||
"namespace": "libel", | ||
"displayName": "Libel", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"description": "Label users on LIHKG", | ||
"author": "kitce <[email protected]>", | ||
"repository": { | ||
|
@@ -25,7 +25,7 @@ | |
"test:watch": "pnpm test -- --watch", | ||
"prebuild": "pnpm clean && pnpm type:scss", | ||
"build": "pnpm prebuild && NODE_ENV=production webpack --config ./config/webpack/webpack.config.prod.ts", | ||
"prerelease": "cz bump && pnpm build && git add . && git commit --amend --no-edit", | ||
"prerelease": "cz bump && cz ch && pnpm build && git add . && git commit --amend --no-edit", | ||
"type:scss": "tsm src/**/*.module.scss --implementation sass --exportType default", | ||
"type:scss:watch": "pnpm type:scss -- --watch" | ||
}, | ||
|
@@ -38,6 +38,7 @@ | |
"@fortawesome/react-fontawesome": "^0.1.18", | ||
"@reduxjs/toolkit": "^1.5.1", | ||
"classnames": "^2.3.1", | ||
"crypto-js": "^4.1.1", | ||
"date-fns": "^2.27.0", | ||
"debug": "^4.3.3", | ||
"events": "^3.3.0", | ||
|
@@ -63,6 +64,8 @@ | |
}, | ||
"devDependencies": { | ||
"@svgr/webpack": "^6.2.1", | ||
"@types/chance": "^1.1.3", | ||
"@types/crypto-js": "^4.1.1", | ||
"@types/debug": "^4.1.7", | ||
"@types/gapi": "^0.0.41", | ||
"@types/gapi.auth2": "^0.0.55", | ||
|
@@ -81,6 +84,7 @@ | |
"@types/semver": "^7.3.6", | ||
"@types/tailwindcss": "^3.0.10", | ||
"@types/webpack-env": "^1.16.0", | ||
"chance": "^1.1.8", | ||
"css-loader": "^5.2.0", | ||
"cssnano": "^5.1.4", | ||
"dotenv": "^10.0.0", | ||
|
@@ -93,6 +97,7 @@ | |
"sass-loader": "^11.0.1", | ||
"style-loader": "^2.0.0", | ||
"tailwindcss": "^3.0.24", | ||
"tiny-typed-emitter": "^2.1.0", | ||
"ts-jest": "^27.1.3", | ||
"ts-key-enum": "^2.0.8", | ||
"ts-loader": "^8.1.0", | ||
|
Oops, something went wrong.