Skip to content

Commit

Permalink
Merge branch 'release/v3.9.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
kitce committed Nov 16, 2022
2 parents d21e318 + dbdad56 commit eab2269
Show file tree
Hide file tree
Showing 54 changed files with 1,024 additions and 325 deletions.
2 changes: 1 addition & 1 deletion .cz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ commitizen:
name: cz_conventional_commits
tag_format: v$version
update_changelog_on_bump: true
version: 3.8.0
version: 3.9.0
version_files:
- package.json
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
## v3.9.0 (2022-11-16)

### Feat

- **components**: show quoted message info
- **mutation**: show user info at the top of reply item
- **label-info**: show emoticons in label item

### Fix

- **announcement**: update layout on close

### Refactor

- **mutation**: implement its own `createContainer()` in the component file
- **components**: update `UserInfo`
- **stylesheets**: sort variables in ascending order
- **helpers**: rename function
- rename enum
- **stylesheets**: add `strip-unit` function
- **helpers**: change singleton to memoization
- **helpers**: change singleton to memoization
- **helpers**: update imports
- **components**: update `Emoticon`
- **components**: update typings
- **components**: update `UnlockIconMapToggleButton`

## v3.8.0 (2022-11-05)

### Feat
Expand Down
2 changes: 1 addition & 1 deletion dist/egg.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/egg.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/libel.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*/

/*!
* tabbable 5.2.1
* tabbable 5.3.3
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion dist/libel.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/libel.meta.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Libel
// @version 3.8.0
// @version 3.9.0
// @author kitce <[email protected]>
// @description Label users on LIHKG
// @homepage https://kitce.github.io/libel
Expand Down
4 changes: 2 additions & 2 deletions dist/libel.user.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "libel",
"namespace": "libel",
"displayName": "Libel",
"version": "3.8.0",
"version": "3.9.0",
"description": "Label users on LIHKG",
"author": "kitce <[email protected]>",
"repository": {
Expand Down Expand Up @@ -52,6 +52,7 @@
"localforage": "^1.9.0",
"lodash": "^4.17.21",
"lz-string": "^1.3.34",
"mem": "^9.0.2",
"mustache": "^4.2.0",
"react": "^18.1.0",
"react-dnd": "^16.0.0",
Expand Down
98 changes: 56 additions & 42 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/components/AddLabelButton/AddLabelButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { mapPostToSource } from '../../helpers/label';
import useLabelSourcePost from '../../hooks/useLabelSourcePost';
import { actions as personalActions, IAddLabelPayload } from '../../store/slices/personal';
import { useTypedDispatch } from '../../store/store';
import lihkgCssClasses from '../../stylesheets/variables/lihkg/classes.module.scss';
import { EventAction, EventCategory, EventLabel } from '../../types/ga';
import IconButton from '../IconButton/IconButton';
import useLabelForm from '../LabelForm/useLabelForm';
Expand Down Expand Up @@ -80,3 +81,10 @@ const AddLabelButton: React.FunctionComponent<TProps> = (props) => {
AddLabelButton.displayName = 'AddLabelButton';

export default AddLabelButton;

export const createContainer = () => {
const container = document.createElement('div');
container.classList.add(lihkgCssClasses.replyToolbarButton);
container.classList.add(styles.container);
return container;
};
Loading

0 comments on commit eab2269

Please sign in to comment.