-
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
10 changed files
with
408 additions
and
275 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
build-and-release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build with webpack | ||
run: yarn prod | ||
|
||
- name: Get script content | ||
id: get-script | ||
run: | | ||
echo "bundle_content<<EOF" >> $GITHUB_ENV | ||
cat dist/twitterArtTags.user.js >> $GITHUB_ENV | ||
echo -e "\n" >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- name: Get commit messages | ||
id: get-commits | ||
run: | | ||
commits=$(git log -1 --pretty=format:"%H") | ||
changes=$(git log --pretty=format:"* %s" ${commits}..HEAD) | ||
echo "changes=$changes" >> $GITHUB_ENV | ||
- name: Create GitHub release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
```javascript | ||
${{ env.bundle_content }} | ||
``` | ||
# Changes | ||
${{ env.changes }} |
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
.github |
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 +1,69 @@ | ||
declare const VanillaContextMenu: typeof import('vanilla-context-menu').default; | ||
interface CoreOptions { | ||
transformOrigin: [string, string]; | ||
} | ||
interface DefaultOptions { | ||
transitionDuration: number; | ||
theme: 'black' | 'white'; | ||
normalizePosition?: boolean; | ||
customNormalizeScope?: HTMLElement; | ||
} | ||
interface ConfigurableOptions extends Partial<DefaultOptions> { | ||
scope: HTMLElement; | ||
menuItems: MenuItem[]; | ||
customClass?: string; | ||
customThemeClass?: string; | ||
openSubMenuOnHover?: boolean; | ||
preventCloseOnClick?: boolean; | ||
} | ||
interface Options extends ConfigurableOptions, CoreOptions {} | ||
interface BaseMenuOption { | ||
label: string; | ||
callback?: (ev: MouseEvent) => unknown; | ||
/** | ||
* @deprecated This property was replaced by the new iconHTML property | ||
*/ | ||
iconClass?: string; | ||
iconHTML?: string; | ||
preventCloseOnClick?: boolean; | ||
} | ||
interface MenuOption extends BaseMenuOption { | ||
nestedMenu?: NestedMenuItem[]; | ||
} | ||
type MenuItem = MenuOption | 'hr'; | ||
type NestedMenuItem = BaseMenuOption | 'hr'; | ||
|
||
declare class BaseContextMenu { | ||
#private; | ||
options: Options; | ||
initialContextMenuEvent: MouseEvent | undefined; | ||
applyStyleOnContextMenu: ( | ||
contextMenu: HTMLElement, | ||
outOfBoundsOnX: boolean, | ||
outOfBoundsOnY: boolean | ||
) => void; | ||
/** | ||
* Interpolate the state variables inside the pug element and create an HTML Element | ||
*/ | ||
buildContextMenu: () => HTMLElement; | ||
updateOptions(configurableOptions: Partial<ConfigurableOptions>): void; | ||
getNormalizedPosition: ( | ||
mouseX: number, | ||
mouseY: number, | ||
contextMenu: HTMLElement | ||
) => { | ||
normalizedX: number; | ||
normalizedY: number; | ||
}; | ||
} | ||
declare class VanillaContextMenu extends BaseContextMenu { | ||
#private; | ||
constructor(configurableOptions: ConfigurableOptions); | ||
/** | ||
* Remove all the event listeners that were registered for this feature | ||
*/ | ||
off(): void; | ||
/** | ||
* Close the context menu | ||
*/ | ||
close(): void; | ||
} |
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
Submodule vanilla-context-menu
deleted from
57da93
Oops, something went wrong.