neptune-web commited on
Commit
2acf0e8
Β·
1 Parent(s): 04e85f3

feature(#72): add babelrc

Browse files
Extension/.babelrc ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "presets": [
3
+ // "@babel/preset-env"
4
+ "@babel/preset-react"
5
+ // "react-app"
6
+ ],
7
+ "plugins": [
8
+ // "@babel/plugin-proposal-class-properties",
9
+ ]
10
+ }
Extension/.eslintrc ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "extends": "react-app",
3
+ "globals": {
4
+ "chrome": "readonly"
5
+ }
6
+ }
Extension/.gitignore CHANGED
@@ -1,6 +1,24 @@
1
- .idea/
2
- .vscode/
3
- node_modules/
4
- build/
 
 
 
 
 
 
 
 
 
 
 
5
  .DS_Store
6
- *.zip
 
 
 
 
 
 
 
 
1
+ # See https://help.github.com/ignore-files/ for more about ignoring files.
2
+
3
+ # dependencies
4
+ /node_modules
5
+
6
+ # testing
7
+ /coverage
8
+
9
+ # production
10
+ /build
11
+
12
+ # zip
13
+ /zip
14
+
15
+ # misc
16
  .DS_Store
17
+ .env.local
18
+ .env.development.local
19
+ .env.test.local
20
+ .env.production.local
21
+ .history
22
+
23
+ # secrets
24
+ secrets.*.js
Extension/.idea/.gitignore ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
Extension/.idea/Extension.iml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
Extension/.idea/inspectionProfiles/Project_Default.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
Extension/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/Extension.iml" filepath="$PROJECT_DIR$/.idea/Extension.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
Extension/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
5
+ </component>
6
+ </project>
Extension/.prettierrc CHANGED
@@ -1,16 +1,6 @@
1
  {
2
- "printWidth": 100,
3
- "semi": false,
4
- "tabWidth": 2,
5
  "singleQuote": true,
6
- "trailingComma": "all",
7
- "bracketSpacing": true,
8
- "overrides": [
9
- {
10
- "files": ".prettierrc",
11
- "options": {
12
- "parser": "json"
13
- }
14
- }
15
- ]
16
- }
 
1
  {
 
 
 
2
  "singleQuote": true,
3
+ "trailingComma": "es5",
4
+ "requirePragma": false,
5
+ "arrowParens": "always"
6
+ }
 
 
 
 
 
 
 
Extension/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2019 Michael Xieyang Liu
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Extension/README.md CHANGED
@@ -1,74 +1,56 @@
1
- <p align="center">
2
- <img src="./src/logo1.png">
3
- </p>
4
 
5
- <h1 align="center">Rising Browser(Extension)</h1>
6
 
7
- <div align="center">
 
 
8
 
 
9
 
10
- All complex software including operating systems will need to be rewritten from the ground up to take advantage of machine learning. It will manipulate the browser automatically. Our plugins can run as an openai plugin, or in our backend.
11
- </div>
 
 
 
 
 
 
12
 
13
- ### Achievement
14
- <p align='center'>
15
- <img align='center' src='src/assets/desc.png' width='100%' />
16
- </p>
17
 
18
- - πŸ“± Support for mobile devices to manage browser.
19
- - 🌍 Support all web browsers to manipulate it automatically as its extension.
20
- - πŸ”— Multiple API support (Web API for Free and Plus users, GPT-3.5, GPT-4, etc.).
21
- - πŸ” Integration to all mainstream search engines, and custom queries to support additional sites.
22
 
23
- ### ✨ Features
24
 
25
- - 🌈 Call up the chat dialog box on any page at any time. (<kbd>Ctrl</kbd>+<kbd>B</kbd>)
26
- - πŸ“± Support for mobile devices.
27
- - πŸ““ Summarize any page with right-click menu. (<kbd>Alt</kbd>+<kbd>B</kbd>)
28
- - πŸ“– Independent conversation page. (<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>H</kbd>)
29
- - πŸ”— Multiple API support (Web API for Free and Plus users, GPT-3.5, GPT-4, New Bing, Self-Hosted, Azure, Poe etc.).
30
- - πŸ” Integration to all mainstream search engines, and custom queries to support additional sites.
31
- - 🧰 Selection tool and right-click menu to perform various tasks, such as translation, summarization, polishing,
32
- sentiment analysis, paragraph division, code explain and queries.
33
- - πŸ—‚οΈ Static cards support floating chat boxes for multi-branch conversations.
34
- - πŸ–¨οΈ Easily save your complete chat records or copy them partially.
35
- - 🎨 Powerful rendering support, whether for code highlighting or complex mathematical formulas.
36
- - 🌍 Language preference support.
37
- - πŸ“ Custom API address support.
38
- - βš™οΈ All site adaptations and selection tools(bubble) can be freely switched on or off, disable modules you don't need.
39
- - πŸ’‘ Selection tools and site adaptation are easy to develop and extend, see the [Development&Contributing][dev-url]
40
- section.
41
- - πŸ˜‰ Chat to improve the answer quality.
42
 
43
- ### ✨ How to install
44
 
45
- ##### install node_modules
46
- ``` bash
47
- npm install
48
- ```
49
 
50
- ##### build and install extention
51
- ```
52
- npm run dev --development
53
- ```
54
 
55
- ##### Enter this into your Chrome search bar:
 
 
 
 
 
 
 
 
 
 
 
56
 
57
- chrome://extensions/
58
 
59
- ##### In the top-right corner, turn on developer mode.
60
-
61
- This will then render two buttons in the top-left corner.
62
- Load the unpacked extension and the packed extension.
63
- Click on β€œLoad unpacked extension,” and select your build folder.
64
-
65
- ### Contributing
66
- Please refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.
67
-
68
- 1. **Fork** the repo on GitHub
69
- 2. **Clone** the project to your own machine
70
- 3. **Commit** changes to your own branch
71
- 4. **Push** your work back up to your fork
72
- 5. Submit a **Pull request** so that we can review your changes
73
-
74
- NOTE: Be sure to merge the latest from "upstream" before making a pull request!
 
1
+ <img src="src/assets/img/icon-128.png" width="64"/>
 
 
2
 
3
+ # Chatbot Chrome Extension
4
 
5
+ [![npm](https://img.shields.io/npm/v/chrome-extension-boilerplate-react)](https://www.npmjs.com/package/chrome-extension-boilerplate-react)
6
+ [![npm-download](https://img.shields.io/npm/dw/chrome-extension-boilerplate-react)](https://www.npmjs.com/package/chrome-extension-boilerplate-react)
7
+ [![npm](https://img.shields.io/npm/dm/chrome-extension-boilerplate-react)](https://www.npmjs.com/package/chrome-extension-boilerplate-react)
8
 
9
+ ## Announcements
10
 
11
+ - Recently updated from **[React](https://reactjs.org)** ~~17~~ to **18**!
12
+ - **_This boilerplate adopts [Manifest V3](https://developer.chrome.com/docs/extensions/mv3/intro/mv3-overview/)!_**
13
+ - For V2 users, please check out the [manifest-v2](https://github.com/lxieyang/chrome-extension-boilerplate-react/tree/manifest-v2) branch, or use version [3.x](https://www.npmjs.com/package/chrome-extension-boilerplate-react/v/3.3.0).
14
+ - Check out the [Manifest V3 Migration Guide](https://developer.chrome.com/docs/extensions/mv3/intro/mv3-migration/).
15
+ - Recently added [devtools](https://developer.chrome.com/docs/extensions/mv3/devtools/) Support! Thanks [GeekaholicLin](https://github.com/lxieyang/chrome-extension-boilerplate-react/issues/17)!
16
+ - Recently updated from **[Webpack Dev Server](https://webpack.js.org/configuration/dev-server/)** ~~3.x~~ to **4.x** and **[Webpack](https://webpack.js.org/)** ~~4~~ to **5**!
17
+ - Recently added [TypeScript](https://www.typescriptlang.org/) Support!
18
+ - Recently used [davinci 003](https://beta.openai.com/) and [gpt-3.5-turbo](https://beta.openai.com/) of OpenAI
19
 
20
+ ## Features
 
 
 
21
 
22
+ This is a Chatbot Chrome Extensions.
 
 
 
23
 
24
+ This extension is updated with:
25
 
26
+ - [Gpt-3.5-turbo](https://beta.openai.com/)
27
+ - [Chrome Extension Manifest V3](https://developer.chrome.com/docs/extensions/mv3/intro/mv3-overview/)
28
+ - [React 18](https://reactjs.org)
29
+ - [Webpack 5](https://webpack.js.org/)
30
+ - [Webpack Dev Server 4](https://webpack.js.org/configuration/dev-server/)
31
+ - [React Refresh](https://www.npmjs.com/package/react-refresh)
32
+ - [react-refresh-webpack-plugin](https://github.com/pmmmwh/react-refresh-webpack-plugin)
33
+ - [eslint-config-react-app](https://www.npmjs.com/package/eslint-config-react-app)
34
+ - [Prettier](https://prettier.io/)
35
+ - [TypeScript](https://www.typescriptlang.org/)
 
 
 
 
 
 
 
36
 
 
37
 
38
+ ## Installing and Running
 
 
 
39
 
40
+ ### Procedures:
 
 
 
41
 
42
+ 1. Check if your [Node.js](https://nodejs.org/) version is >= **18**.
43
+ 2. Clone this repository.
44
+ 3. Change the package's `name`, `description`, and `repository` fields in `package.json`.
45
+ 4. Change the name of your extension on `src/manifest.json`.
46
+ 5. Run `npm install` to install the dependencies.
47
+ 6. Run `npm start`
48
+ 7. Load your extension on Chrome following:
49
+ 1. Access `chrome://extensions/`
50
+ 2. Check `Developer mode`
51
+ 3. Click on `Load unpacked extension`
52
+ 4. Select the `build` folder.
53
+ 8. Happy hacking.
54
 
 
55
 
56
+ Saeid Nobahari