Deploying to gh-pages from @ fishjar/kiss-translator@5260ed8c8d 🚀
This commit is contained in:
8
_locales/en/messages.json
Normal file
8
_locales/en/messages.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"app_name": {
|
||||||
|
"message": "KISS Translator"
|
||||||
|
},
|
||||||
|
"app_description": {
|
||||||
|
"message": "A minimalist bilingual translation Extension & Greasemonkey Script"
|
||||||
|
}
|
||||||
|
}
|
||||||
8
_locales/zh_CN/messages.json
Normal file
8
_locales/zh_CN/messages.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"app_name": {
|
||||||
|
"message": "简约翻译"
|
||||||
|
},
|
||||||
|
"app_description": {
|
||||||
|
"message": "一个简约的双语网页翻译扩展 & 油猴脚本"
|
||||||
|
}
|
||||||
|
}
|
||||||
12
asset-manifest.json
Normal file
12
asset-manifest.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"files": {
|
||||||
|
"main.js": "/main.js",
|
||||||
|
"options.js": "/options.js",
|
||||||
|
"kiss-translator.user.js": "/kiss-translator.user.js",
|
||||||
|
"options.html": "/options.html",
|
||||||
|
"index.html": "/index.html"
|
||||||
|
},
|
||||||
|
"entrypoints": [
|
||||||
|
"main.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
346
content.html
Normal file
346
content.html
Normal file
@@ -0,0 +1,346 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<title>%REACT_APP_NAME%</title>
|
||||||
|
<style>
|
||||||
|
img {
|
||||||
|
width: 1.2em;
|
||||||
|
height: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
max-width: 1.2em;
|
||||||
|
max-height: 1.2em;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
|
<div id="root">
|
||||||
|
<h2>React is a JavaScript library for building user interfaces.</h2>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<h2>React is a JavaScript library for building user interfaces.</h2>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<h2>React is a JavaScript library for building user interfaces.</h2>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<h2>React is a JavaScript library for building user interfaces.</h2>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<div class="cont cont1">
|
||||||
|
<h2>React is a JavaScript library for building user interfaces.</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Declarative: React makes it painless to create interactive UIs.
|
||||||
|
Design simple views for each state in your application, and React
|
||||||
|
will efficiently update and render just the right components when
|
||||||
|
your data changes. Declarative views make your code more
|
||||||
|
predictable, simpler to understand, and easier to debug.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Component-Based: Build encapsulated components that manage their own
|
||||||
|
state, then compose them to make complex UIs. Since component logic
|
||||||
|
is written in JavaScript instead of templates, you can easily pass
|
||||||
|
rich data through your app and keep the state out of the DOM.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
React 使创建交互式 UI
|
||||||
|
变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React
|
||||||
|
能高效更新并渲染合适的组件。
|
||||||
|
</li>
|
||||||
|
<li>以声明式编写 UI,可以让你的代码更加可靠,且方便调试。</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<div class="cont cont2">
|
||||||
|
<h2>React is a JavaScript library for building user interfaces.</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Declarative: React makes it painless to create interactive UIs.
|
||||||
|
Design simple views for each state in your application, and React
|
||||||
|
will efficiently update and render just the right components when
|
||||||
|
your data changes. Declarative views make your code more
|
||||||
|
predictable, simpler to understand, and easier to debug.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Component-Based: Build encapsulated components that manage their own
|
||||||
|
state, then compose them to make complex UIs. Since component logic
|
||||||
|
is written in JavaScript instead of templates, you can easily pass
|
||||||
|
rich data through your app and keep the state out of the DOM.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
React 使创建交互式 UI
|
||||||
|
变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React
|
||||||
|
能高效更新并渲染合适的组件。
|
||||||
|
</li>
|
||||||
|
<li>以声明式编写 UI,可以让你的代码更加可靠,且方便调试。</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<div class="cont cont3">
|
||||||
|
<h2>React is a JavaScript library for building user interfaces.</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Declarative: React makes it painless to create interactive UIs.
|
||||||
|
Design simple views for each state in your application, and React
|
||||||
|
will efficiently update and render just the right components when
|
||||||
|
your data changes. Declarative views make your code more
|
||||||
|
predictable, simpler to understand, and easier to debug.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Component-Based: Build encapsulated components that manage their own
|
||||||
|
state, then compose them to make complex UIs. Since component logic
|
||||||
|
is written in JavaScript instead of templates, you can easily pass
|
||||||
|
rich data through your app and keep the state out of the DOM.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
React 使创建交互式 UI
|
||||||
|
变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React
|
||||||
|
能高效更新并渲染合适的组件。
|
||||||
|
</li>
|
||||||
|
<li>以声明式编写 UI,可以让你的代码更加可靠,且方便调试。</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<div class="cont cont4">
|
||||||
|
<h2>
|
||||||
|
React is a <code>JavaScript</code> <a href="#">library</a> for
|
||||||
|
building user interfaces.
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Declarative: React makes it painless to create interactive UIs.
|
||||||
|
Design simple views for each state in your application, and React
|
||||||
|
will efficiently update and render just the right components when
|
||||||
|
your data changes. Declarative views make your code more
|
||||||
|
predictable, simpler to understand, and easier to debug.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Component-Based: Build encapsulated components that manage their own
|
||||||
|
state, then compose them to make complex UIs. Since component logic
|
||||||
|
is written in JavaScript instead of templates, you can easily pass
|
||||||
|
rich data through your app and keep the state out of the DOM.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
React 使创建交互式 UI
|
||||||
|
变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React
|
||||||
|
能高效更新并渲染合适的组件。
|
||||||
|
</li>
|
||||||
|
<li>以声明式编写 UI,可以让你的代码更加可靠,且方便调试。</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<div class="cont cont5">
|
||||||
|
<h2>React is a JavaScript library for building user interfaces.</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Declarative: React makes it painless to create interactive UIs.
|
||||||
|
Design simple views for each state in your application, and React
|
||||||
|
will efficiently update and render just the right components when
|
||||||
|
your data changes. Declarative views make your code more
|
||||||
|
predictable, simpler to understand, and easier to debug.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Component-Based: Build encapsulated components that manage their own
|
||||||
|
state, then compose them to make complex UIs. Since component logic
|
||||||
|
is written in JavaScript instead of templates, you can easily pass
|
||||||
|
rich data through your app and keep the state out of the DOM.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
React 使创建交互式 UI
|
||||||
|
变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React
|
||||||
|
能高效更新并渲染合适的组件。
|
||||||
|
</li>
|
||||||
|
<li>以声明式编写 UI,可以让你的代码更加可靠,且方便调试。</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--
|
||||||
|
This HTML file is a template.
|
||||||
|
If you open it directly in the browser, you will see an empty page.
|
||||||
|
|
||||||
|
You can add webfonts, meta tags, or analytics to this file.
|
||||||
|
The build step will place the bundled scripts into the <body> tag.
|
||||||
|
|
||||||
|
To begin the development, run `npm start` or `yarn start`.
|
||||||
|
To create a production bundle, use `npm run build` or `yarn build`.
|
||||||
|
-->
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
images/logo128.png
Normal file
BIN
images/logo128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
BIN
images/logo16.png
Normal file
BIN
images/logo16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 469 B |
BIN
images/logo192.png
Normal file
BIN
images/logo192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
BIN
images/logo32.png
Normal file
BIN
images/logo32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 898 B |
BIN
images/logo48.png
Normal file
BIN
images/logo48.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
1
index.html
Normal file
1
index.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>KISS Translator</title><script defer="defer" src="./main.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
||||||
28330
kiss-translator.user.js
Normal file
28330
kiss-translator.user.js
Normal file
File diff suppressed because one or more lines are too long
36
manifest.firefox.json
Normal file
36
manifest.firefox.json
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"manifest_version": 2,
|
||||||
|
"name": "__MSG_app_name__",
|
||||||
|
"description": "__MSG_app_description__",
|
||||||
|
"version": "1.4.2",
|
||||||
|
"default_locale": "zh_CN",
|
||||||
|
"author": "Gabe<yugang2002@gmail.com>",
|
||||||
|
"homepage_url": "https://github.com/fishjar/kiss-translator",
|
||||||
|
"background": {
|
||||||
|
"scripts": ["background.js"]
|
||||||
|
},
|
||||||
|
"content_scripts": [
|
||||||
|
{
|
||||||
|
"js": ["content.js"],
|
||||||
|
"matches": ["<all_urls>"]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"permissions": ["<all_urls>", "storage"],
|
||||||
|
"icons": {
|
||||||
|
"16": "images/logo16.png",
|
||||||
|
"32": "images/logo32.png",
|
||||||
|
"48": "images/logo48.png",
|
||||||
|
"128": "images/logo128.png"
|
||||||
|
},
|
||||||
|
"browser_action": {
|
||||||
|
"default_icon": {
|
||||||
|
"128": "images/logo128.png"
|
||||||
|
},
|
||||||
|
"default_title": "__MSG_app_name__",
|
||||||
|
"default_popup": "popup.html"
|
||||||
|
},
|
||||||
|
"options_ui": {
|
||||||
|
"page": "options.html",
|
||||||
|
"open_in_tab": true
|
||||||
|
}
|
||||||
|
}
|
||||||
38
manifest.json
Normal file
38
manifest.json
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"manifest_version": 3,
|
||||||
|
"name": "__MSG_app_name__",
|
||||||
|
"description": "__MSG_app_description__",
|
||||||
|
"version": "1.4.2",
|
||||||
|
"default_locale": "zh_CN",
|
||||||
|
"author": "Gabe<yugang2002@gmail.com>",
|
||||||
|
"homepage_url": "https://github.com/fishjar/kiss-translator",
|
||||||
|
"background": {
|
||||||
|
"service_worker": "background.js",
|
||||||
|
"type": "module"
|
||||||
|
},
|
||||||
|
"content_scripts": [
|
||||||
|
{
|
||||||
|
"js": ["content.js"],
|
||||||
|
"matches": ["<all_urls>"]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"permissions": ["storage"],
|
||||||
|
"host_permissions": ["<all_urls>"],
|
||||||
|
"icons": {
|
||||||
|
"16": "images/logo16.png",
|
||||||
|
"32": "images/logo32.png",
|
||||||
|
"48": "images/logo48.png",
|
||||||
|
"128": "images/logo128.png"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"default_icon": {
|
||||||
|
"128": "images/logo128.png"
|
||||||
|
},
|
||||||
|
"default_title": "__MSG_app_name__",
|
||||||
|
"default_popup": "popup.html"
|
||||||
|
},
|
||||||
|
"options_ui": {
|
||||||
|
"page": "options.html",
|
||||||
|
"open_in_tab": true
|
||||||
|
}
|
||||||
|
}
|
||||||
1
options.html
Normal file
1
options.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>KISS Translator</title><script defer="defer" src="./options.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
||||||
55405
options.js
Normal file
55405
options.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user