mirror of
https://github.com/pionxzh/chatgpt-exporter.git
synced 2026-07-23 09:00:51 -05:00
ci: fix release
Release-As: 1.0.0
This commit is contained in:
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
@@ -6,7 +6,7 @@ on:
|
||||
- '**'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
jobs:
|
||||
check:
|
||||
|
||||
2
.github/workflows/release-please.yml
vendored
2
.github/workflows/release-please.yml
vendored
@@ -3,7 +3,7 @@ name: release-please
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
jobs:
|
||||
release-please:
|
||||
|
||||
1
.release-please-manifest.json
Normal file
1
.release-please-manifest.json
Normal file
@@ -0,0 +1 @@
|
||||
{"packages/userscript":"1.0.0"}
|
||||
@@ -25,7 +25,7 @@ Install **Tampermonkey** **([Chrome](https://www.tampermonkey.net/)** / **[Fir
|
||||
|
||||
| Greasyfork | GitHub |
|
||||
| ---------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
||||
| [Insatall](https://greasyfork.org/scripts/456055-chatgpt-exporter) | [Insatall](https://raw.githubusercontent.com/pionxzh/chatgpt-exporter/main/dist/chatgpt.user.js) |
|
||||
| [Insatall](https://greasyfork.org/scripts/456055-chatgpt-exporter) | [Insatall](https://raw.githubusercontent.com/pionxzh/chatgpt-exporter/master/dist/chatgpt.user.js) |
|
||||
|
||||
# Example
|
||||
|
||||
|
||||
@@ -3,9 +3,24 @@ import './style.scss'
|
||||
import { copyToClipboard, downloadFile, getBase64FromImg, onloadSafe } from './utils'
|
||||
import templateHtml from './template.html?raw'
|
||||
|
||||
appendLeftSidebarItem()
|
||||
type ConversationLine = |
|
||||
{ type: 'text'; text: string } |
|
||||
{ type: 'image'; src: string } |
|
||||
{ type: 'code'; code: string } |
|
||||
{ type: 'code-block'; lang: string; code: string } |
|
||||
{ type: 'link'; text: string; href: string }
|
||||
|
||||
function appendLeftSidebarItem() {
|
||||
interface ConversationItem {
|
||||
author: {
|
||||
name: string
|
||||
avatar: string
|
||||
}
|
||||
lines: ConversationLine[][]
|
||||
}
|
||||
|
||||
main()
|
||||
|
||||
function main() {
|
||||
onloadSafe(() => {
|
||||
const firstItem = document.querySelector('[class^="Navigation__NavMenuItem"]')
|
||||
if (!firstItem) return
|
||||
@@ -31,21 +46,6 @@ function appendLeftSidebarItem() {
|
||||
})
|
||||
}
|
||||
|
||||
type ConversationLine = |
|
||||
{ type: 'text'; text: string } |
|
||||
{ type: 'image'; src: string } |
|
||||
{ type: 'code'; code: string } |
|
||||
{ type: 'code-block'; lang: string; code: string } |
|
||||
{ type: 'link'; text: string; href: string }
|
||||
|
||||
interface ConversationItem {
|
||||
author: {
|
||||
name: string
|
||||
avatar: string
|
||||
}
|
||||
lines: ConversationLine[][]
|
||||
}
|
||||
|
||||
function copyToText() {
|
||||
const items = getConversation()
|
||||
if (items.length === 0) {
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"pull-request-header": ":robot: I have created a release",
|
||||
"pull-request-title-pattern": "chore: release${component} ${version}",
|
||||
"packages": {
|
||||
"packages/exporter": {
|
||||
"component": "exporter"
|
||||
"packages/userscript": {
|
||||
"component": "userscript"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user