sg-paisou 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/.idea/GitCommitMessageStorage.xml +8 -0
  2. package/.idea/modules.xml +8 -0
  3. package/.idea/sg-paisou-web.iml +12 -0
  4. package/.idea/vcs.xml +6 -0
  5. package/.vscode/settings.json +2 -0
  6. package/README.md +2 -0
  7. package/auto-imports.d.ts +10 -0
  8. package/components.d.ts +18 -0
  9. package/index.html +21 -0
  10. package/package.json +39 -0
  11. package/public/mathjax/all-packages.js +34 -0
  12. package/public/mathjax/talEditorConfig.js +5 -0
  13. package/public/mathjax/tex-svg.js +3 -0
  14. package/src/App.vue +38 -0
  15. package/src/assets/images/Camera-icon.png +0 -0
  16. package/src/assets/images/anger.png +0 -0
  17. package/src/assets/images/answer-icon.png +0 -0
  18. package/src/assets/images/back.png +0 -0
  19. package/src/assets/images/bg-img.png +0 -0
  20. package/src/assets/images/collect.png +0 -0
  21. package/src/assets/images/collected.png +0 -0
  22. package/src/assets/images/empty-bookmark.png +0 -0
  23. package/src/assets/images/empty-history.png +0 -0
  24. package/src/assets/images/feedback-thinkie-img.png +0 -0
  25. package/src/assets/images/history.png +0 -0
  26. package/src/assets/images/image 5.png +0 -0
  27. package/src/assets/images/insolubility.png +0 -0
  28. package/src/assets/images/key-points.png +0 -0
  29. package/src/assets/images/photograph-icon.png +0 -0
  30. package/src/assets/images/praise-icon.png +0 -0
  31. package/src/assets/images/praiseing-icon.png +0 -0
  32. package/src/assets/images/question.png +0 -0
  33. package/src/assets/images/smiling.png +0 -0
  34. package/src/assets/images/solution-icon.png +0 -0
  35. package/src/assets/images/star-icon.png +0 -0
  36. package/src/assets/images/trample-icon.png +0 -0
  37. package/src/assets/images/trampleing-icon.png +0 -0
  38. package/src/assets/images/volume-icon.png +0 -0
  39. package/src/assets/images/volumeing-icon.png +0 -0
  40. package/src/components/AIChatSDK/AIChatComponent.vue +963 -0
  41. package/src/components/AIChatSDK/component/Dialogs.vue +340 -0
  42. package/src/components/AIChatSDK/component/SpecialQuestions.vue +208 -0
  43. package/src/components/AIChatSDK/index.ts +146 -0
  44. package/src/components/AIChatSDK/style.scss +432 -0
  45. package/src/components/AIChatSDK/types.ts +275 -0
  46. package/src/components/AIChatSDK/utils/imageUtils.ts +61 -0
  47. package/src/components/AIChatSDK/utils/latex.ts +34 -0
  48. package/src/components/AIChatSDK/utils/mergeConfig.ts +125 -0
  49. package/src/components/ImagePreview.vue +62 -0
  50. package/src/components/PageHeader/index.vue +121 -0
  51. package/src/config.ts +11 -0
  52. package/src/env.d.ts +11 -0
  53. package/src/main.ts +12 -0
  54. package/src/router.ts +20 -0
  55. package/src/style.css +33 -0
  56. package/src/type.ts +106 -0
  57. package/src/utils/TTS_README.md +232 -0
  58. package/src/utils/bridge.ts +42 -0
  59. package/src/utils/index.ts +8 -0
  60. package/src/utils/listenOsEvent.ts +3 -0
  61. package/src/utils/messageToast.ts +43 -0
  62. package/src/utils/render.ts +81 -0
  63. package/src/utils/request.ts +87 -0
  64. package/src/utils/tts.ts +319 -0
  65. package/src/utils/typewriter.ts +61 -0
  66. package/src/utils/useSSE.ts +113 -0
  67. package/src/views/History/index.vue +419 -0
  68. package/src/views/QuestionChatPage/index.vue +480 -0
  69. package/src/vite-env.d.ts +1 -0
  70. package/tsconfig.app.json +24 -0
  71. package/tsconfig.json +7 -0
  72. package/tsconfig.node.json +22 -0
  73. package/vite.config.ts +41 -0
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="GitCommitMessageStorage">
4
+ <option name="messageStorage">
5
+ <MessageStorage />
6
+ </option>
7
+ </component>
8
+ </project>
@@ -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/sg-paisou-web.iml" filepath="$PROJECT_DIR$/.idea/sg-paisou-web.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -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>
package/.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="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,2 @@
1
+ {
2
+ }
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # SG-paisou-web
2
+
@@ -0,0 +1,10 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ // @ts-nocheck
4
+ // noinspection JSUnusedGlobalSymbols
5
+ // Generated by unplugin-auto-import
6
+ // biome-ignore lint: disable
7
+ export {}
8
+ declare global {
9
+
10
+ }
@@ -0,0 +1,18 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ // Generated by unplugin-vue-components
4
+ // Read more: https://github.com/vuejs/core/pull/3399
5
+ export {}
6
+
7
+ /* prettier-ignore */
8
+ declare module 'vue' {
9
+ export interface GlobalComponents {
10
+ AIChatComponent: typeof import('./src/components/AIChatSDK/AIChatComponent.vue')['default']
11
+ Dialogs: typeof import('./src/components/AIChatSDK/component/Dialogs.vue')['default']
12
+ ImagePreview: typeof import('./src/components/ImagePreview.vue')['default']
13
+ PageHeader: typeof import('./src/components/PageHeader/index.vue')['default']
14
+ RouterLink: typeof import('vue-router')['RouterLink']
15
+ RouterView: typeof import('vue-router')['RouterView']
16
+ SpecialQuestions: typeof import('./src/components/AIChatSDK/component/SpecialQuestions.vue')['default']
17
+ }
18
+ }
package/index.html ADDED
@@ -0,0 +1,21 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" href="data:,">
6
+ <meta
7
+ name="viewport"
8
+ content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0"
9
+ />
10
+ <title>SG拍搜</title>
11
+ <script id="EditorConfig" src="./mathjax/talEditorConfig.js"></script>
12
+ <script id="MathJax-script" src="./mathjax/tex-svg.js"></script>
13
+ <script id="allPackages" src="./mathjax/all-packages.js"></script>
14
+ <link href="https://static.speiyou.com/_cdn_/talqs-template4.0/1.0.27/talqsTemplate.min.css" rel="stylesheet" />
15
+ <script src="https://static.speiyou.com/_cdn_/talqs-template4.0/1.0.27/talqsTemplate.min.js"></script>
16
+ </head>
17
+ <body>
18
+ <div id="app"></div>
19
+ <script type="module" src="/src/main.ts"></script>
20
+ </body>
21
+ </html>
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "sg-paisou",
3
+ "version": "0.0.0",
4
+ "type": "module",
5
+ "scripts": {
6
+ "dev": "vite --host --port 3001",
7
+ "build": "vite build",
8
+ "preview": "vite preview"
9
+ },
10
+ "dependencies": {
11
+ "@aliyun-sls/web-track-browser": "^0.3.8",
12
+ "@genie/sea.uni.jsbridge": "^0.3.13",
13
+ "@microsoft/fetch-event-source": "^2.0.1",
14
+ "axios": "^1.7.7",
15
+ "crypto-js": "^4.2.0",
16
+ "events": "^3.3.0",
17
+ "katex": "^0.16.11",
18
+ "pinia": "^2.2.2",
19
+ "tal-mathgpt-render": "^1.2.7-1",
20
+ "vue": "^3.4.35",
21
+ "vue-router": "^4.6.3"
22
+ },
23
+ "devDependencies": {
24
+ "@types/crypto-js": "^4.2.2",
25
+ "@types/events": "^3.0.3",
26
+ "@types/katex": "^0.16.7",
27
+ "@types/node": "^22.9.0",
28
+ "@vitejs/plugin-vue": "^5.1.2",
29
+ "sass": "^1.78.0",
30
+ "typescript": "^5.5.3",
31
+ "unplugin-auto-import": "^0.18.3",
32
+ "unplugin-element-plus": "^0.8.0",
33
+ "unplugin-vue-components": "^0.27.4",
34
+ "vite": "^5.4.0",
35
+ "vite-plugin-html": "^3.2.2",
36
+ "vite-plugin-singlefile": "^2.0.2",
37
+ "vue-tsc": "^2.0.29"
38
+ }
39
+ }