Browse Source

change words

master
godo 6 months ago
parent
commit
9407054ac8
  1. 24
      frontend/components.d.ts
  2. 1
      frontend/public/docx/assets/ai-edit.48ceb865.svg
  3. 1
      frontend/public/docx/assets/ai-edit.8119651f.svg
  4. 1
      frontend/public/docx/assets/article.3b97a2e3.svg
  5. 141
      frontend/public/docx/assets/index.5f048ec4.js
  6. 1
      frontend/public/docx/assets/index.ec407d42.css
  7. 7
      frontend/public/docx/assets/justify.b2efed4b.svg
  8. 1
      frontend/public/docx/assets/loader.d32cdde3.svg
  9. 1
      frontend/public/docx/assets/outline.e20214df.svg
  10. 4
      frontend/public/docx/assets/radio.37698364.svg
  11. 53
      frontend/public/docx/index.html
  12. 4
      frontend/src/system/applist.ts
  13. 1
      godo/files/fs.go
  14. 6
      godo/sys/setting.go

24
frontend/components.d.ts

@ -60,35 +60,18 @@ declare module 'vue' {
DownModelInfo: typeof import('./src/components/ai/DownModelInfo.vue')['default']
EditFileName: typeof import('./src/components/builtin/EditFileName.vue')['default']
EditType: typeof import('./src/components/builtin/EditType.vue')['default']
ElAside: typeof import('element-plus/es')['ElAside']
ElAvatar: typeof import('element-plus/es')['ElAvatar']
ElBadge: typeof import('element-plus/es')['ElBadge']
ElButton: typeof import('element-plus/es')['ElButton']
ElCard: typeof import('element-plus/es')['ElCard']
ElCarousel: typeof import('element-plus/es')['ElCarousel']
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCol: typeof import('element-plus/es')['ElCol']
ElColorPicker: typeof import('element-plus/es')['ElColorPicker']
ElContainer: typeof import('element-plus/es')['ElContainer']
ElDialog: typeof import('element-plus/es')['ElDialog']
ElDrawer: typeof import('element-plus/es')['ElDrawer']
ElDropdown: typeof import('element-plus/es')['ElDropdown']
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
ElEmpty: typeof import('element-plus/es')['ElEmpty']
ElFooter: typeof import('element-plus/es')['ElFooter']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElImage: typeof import('element-plus/es')['ElImage']
ElInput: typeof import('element-plus/es')['ElInput']
ElMain: typeof import('element-plus/es')['ElMain']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption']
ElPageHeader: typeof import('element-plus/es')['ElPageHeader']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopover: typeof import('element-plus/es')['ElPopover']
ElProgress: typeof import('element-plus/es')['ElProgress']
@ -96,17 +79,10 @@ declare module 'vue' {
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSlider: typeof import('element-plus/es')['ElSlider']
ElSpace: typeof import('element-plus/es')['ElSpace']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTabPane: typeof import('element-plus/es')['ElTabPane']
ElTabs: typeof import('element-plus/es')['ElTabs']
ElTag: typeof import('element-plus/es')['ElTag']
ElText: typeof import('element-plus/es')['ElText']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElTransfer: typeof import('element-plus/es')['ElTransfer']
ElTree: typeof import('element-plus/es')['ElTree']
Error: typeof import('./src/components/taskbar/Error.vue')['default']
FileIcon: typeof import('./src/components/builtin/FileIcon.vue')['default']
FileIconImg: typeof import('./src/components/builtin/FileIconImg.vue')['default']

1
frontend/public/docx/assets/ai-edit.48ceb865.svg

@ -0,0 +1 @@
<svg t="1731985324837" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2001" width="18" height="18"><path d="M683.7 922.7h-345c-73.5 0-133.3-59.8-133.3-133.3V459.8c0-73.5 59.8-133.3 133.3-133.3h345c73.5 0 133.3 59.8 133.3 133.3v329.6c0 73.5-59.8 133.3-133.3 133.3z m-345-506.9c-24.3 0-44.1 19.8-44.1 44.1v329.6c0 24.3 19.8 44.1 44.1 44.1h345c24.3 0 44.1-19.8 44.1-44.1V459.8c0-24.3-19.8-44.1-44.1-44.1h-345zM914.3 759.6c-24.6 0-44.6-20-44.6-44.6V534.3c0-24.6 20-44.6 44.6-44.6s44.6 20 44.6 44.6V715c0 24.7-20 44.6-44.6 44.6zM111.7 759.6c-24.6 0-44.6-20-44.6-44.6V534.3c0-24.6 20-44.6 44.6-44.6s44.6 20 44.6 44.6V715c0 24.7-19.9 44.6-44.6 44.6z" fill="#515151" p-id="2002"></path><path d="M511.2 415.8c-24.6 0-44.6-20-44.6-44.6V239.3c0-24.6 20-44.6 44.6-44.6s44.6 20 44.6 44.6v131.9c0 24.6-20 44.6-44.6 44.6z" fill="#515151" p-id="2003"></path><path d="M511.2 276.6c-49.2 0-89.2-40-89.2-89.2s40-89.2 89.2-89.2 89.2 40 89.2 89.2-40 89.2-89.2 89.2z m0-89.2h0.2-0.2z m0 0h0.2-0.2z m0 0h0.2-0.2z m0 0h0.2-0.2z m0 0z m0 0h0.2-0.2z m0 0h0.2-0.2z m0-0.1h0.2-0.2zM399 675.5c-28.1 0-50.9-22.8-50.9-50.9 0-28.1 22.8-50.9 50.9-50.9s50.9 22.8 50.9 50.9c0 28.1-22.8 50.9-50.9 50.9zM622.9 675.5c-28.1 0-50.9-22.8-50.9-50.9 0-28.1 22.8-50.9 50.9-50.9 28.1 0 50.9 22.8 50.9 50.9 0 28.1-22.8 50.9-50.9 50.9z" fill="#515151" p-id="2004"></path></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

1
frontend/public/docx/assets/ai-edit.8119651f.svg

@ -0,0 +1 @@
<svg t="1731985324837" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2001" width="16" height="16"><path d="M683.7 922.7h-345c-73.5 0-133.3-59.8-133.3-133.3V459.8c0-73.5 59.8-133.3 133.3-133.3h345c73.5 0 133.3 59.8 133.3 133.3v329.6c0 73.5-59.8 133.3-133.3 133.3z m-345-506.9c-24.3 0-44.1 19.8-44.1 44.1v329.6c0 24.3 19.8 44.1 44.1 44.1h345c24.3 0 44.1-19.8 44.1-44.1V459.8c0-24.3-19.8-44.1-44.1-44.1h-345zM914.3 759.6c-24.6 0-44.6-20-44.6-44.6V534.3c0-24.6 20-44.6 44.6-44.6s44.6 20 44.6 44.6V715c0 24.7-20 44.6-44.6 44.6zM111.7 759.6c-24.6 0-44.6-20-44.6-44.6V534.3c0-24.6 20-44.6 44.6-44.6s44.6 20 44.6 44.6V715c0 24.7-19.9 44.6-44.6 44.6z" fill="#515151" p-id="2002"></path><path d="M511.2 415.8c-24.6 0-44.6-20-44.6-44.6V239.3c0-24.6 20-44.6 44.6-44.6s44.6 20 44.6 44.6v131.9c0 24.6-20 44.6-44.6 44.6z" fill="#515151" p-id="2003"></path><path d="M511.2 276.6c-49.2 0-89.2-40-89.2-89.2s40-89.2 89.2-89.2 89.2 40 89.2 89.2-40 89.2-89.2 89.2z m0-89.2h0.2-0.2z m0 0h0.2-0.2z m0 0h0.2-0.2z m0 0h0.2-0.2z m0 0z m0 0h0.2-0.2z m0 0h0.2-0.2z m0-0.1h0.2-0.2zM399 675.5c-28.1 0-50.9-22.8-50.9-50.9 0-28.1 22.8-50.9 50.9-50.9s50.9 22.8 50.9 50.9c0 28.1-22.8 50.9-50.9 50.9zM622.9 675.5c-28.1 0-50.9-22.8-50.9-50.9 0-28.1 22.8-50.9 50.9-50.9 28.1 0 50.9 22.8 50.9 50.9 0 28.1-22.8 50.9-50.9 50.9z" fill="#515151" p-id="2004"></path></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

1
frontend/public/docx/assets/article.3b97a2e3.svg

@ -0,0 +1 @@
<svg t="1732247973623" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7387" width="16" height="16"><path d="M640 795.136a155.136 155.136 0 0 0 155.136-155.136h31.0272a155.136 155.136 0 0 0 155.136 155.136v31.0272a155.136 155.136 0 0 0-155.136 155.136h-31.0272a155.136 155.136 0 0 0-155.136-155.136v-31.0272zM85.3504 128h853.2992v85.3504H85.3504V128z m0 213.3504h853.2992v85.2992H85.3504V341.3504z m0 213.2992h512V640h-512v-85.3504z m0 213.3504h341.2992v85.3504H85.3504z" p-id="7388" fill="#515151"></path></svg>

After

Width:  |  Height:  |  Size: 556 B

141
frontend/public/docx/assets/index.5f048ec4.js

File diff suppressed because one or more lines are too long

1
frontend/public/docx/assets/index.ec407d42.css

File diff suppressed because one or more lines are too long

7
frontend/public/docx/assets/justify.b2efed4b.svg

@ -0,0 +1,7 @@
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<path stroke="#3D4757" fill="#3D4757" d="M2 10.5H14M2 13.5H14" stroke-linecap="round" stroke-linejoin="miter">
</path>
<path stroke="#3D4757" fill="#3D4757" d="M14 3.5L12 1.5M14 3.5L12 5.5M14 3.5L2 3.5M4 1.5L2 3.5M2 3.5L4 5.5"
stroke-linecap="round" stroke-linejoin="miter">
</path>
</svg>

After

Width:  |  Height:  |  Size: 385 B

1
frontend/public/docx/assets/loader.d32cdde3.svg

@ -0,0 +1 @@
<svg t="1732353171919" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5352" width="48" height="48"><path d="M546.462897 266.292966c-73.410207 0-133.15531-59.727448-133.155311-133.137656C413.307586 59.762759 473.05269 0 546.462897 0c73.410207 0 133.12 59.727448 133.12 133.15531 0 73.410207-59.709793 133.137655-133.12 133.137656z m-283.453794 105.736827c-67.054345 0-121.626483-54.554483-121.626482-121.644138s54.572138-121.644138 121.626482-121.644138a121.767724 121.767724 0 0 1 121.608828 121.644138c0 67.054345-54.554483 121.644138-121.608828 121.644138zM142.547862 647.185655A107.343448 107.343448 0 0 1 35.310345 539.895172a107.343448 107.343448 0 0 1 107.237517-107.237517 107.343448 107.343448 0 0 1 107.219862 107.237517 107.343448 107.343448 0 0 1-107.219862 107.272828z m120.461241 272.595862a91.047724 91.047724 0 0 1-90.941793-90.959448 91.065379 91.065379 0 0 1 90.924138-90.941793 91.065379 91.065379 0 0 1 90.941793 90.941793c0 50.14069-40.783448 90.959448-90.924138 90.959448zM546.462897 1024a79.518897 79.518897 0 0 1-79.448276-79.448276c0-43.820138 35.645793-79.448276 79.448276-79.448276a79.518897 79.518897 0 0 1 79.43062 79.448276c0 43.820138-35.628138 79.448276-79.448276 79.448276z m287.744-134.285241a64.194207 64.194207 0 0 1-64.123587-64.123587 64.194207 64.194207 0 0 1 64.123587-64.123586 64.194207 64.194207 0 0 1 64.123586 64.123586 64.194207 64.194207 0 0 1-64.123586 64.123587z m117.848275-296.695173a52.683034 52.683034 0 0 1-52.612413-52.612414 52.683034 52.683034 0 0 1 52.612413-52.630069 52.70069 52.70069 0 0 1 52.630069 52.612414 52.718345 52.718345 0 0 1-52.630069 52.630069z m-158.667034-338.696827a40.818759 40.818759 0 1 0 81.655172 0.017655 40.818759 40.818759 0 0 0-81.655172 0z" fill="#76c9f5" p-id="5353"></path></svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

1
frontend/public/docx/assets/outline.e20214df.svg

@ -0,0 +1 @@
<svg t="1732255262904" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8990" width="16" height="16"><path d="M639.77984 748.449304a31.34893 31.34893 0 0 0 8.317063-1.151594l223.920928-63.977407c17.081968-4.862283 27.190398-23.543686 22.648002-41.777248-4.606373-18.233561-22.136183-28.981766-39.154174-24.119483l-223.920927 63.977408c-17.081968 4.862283-27.190398 23.543686-22.648003 41.777248a32.244614 32.244614 0 0 0 30.837111 25.271076z m0-170.499792a31.34893 31.34893 0 0 0 8.317063-1.151594l223.920928-63.977408c17.081968-4.862283 27.190398-23.607664 22.648002-41.777247-4.606373-18.233561-22.136183-28.981766-39.154174-24.119483l-223.920927 63.977408a34.419845 34.419845 0 0 0-22.71198 41.777247c3.838644 15.290601 16.762081 25.271076 30.901088 25.271077z m0-170.435815a31.34893 31.34893 0 0 0 8.317063-1.151594l223.920928-63.977408c17.081968-4.862283 27.190398-23.543686 22.648002-41.777247-4.606373-18.233561-22.136183-29.045743-39.154174-24.119483l-223.920927 63.977408c-17.145945 4.862283-27.254376 23.543686-22.71198 41.777248 3.838644 15.226623 16.762081 25.271076 30.901088 25.271076z m319.88704 418.86009l-415.853152 118.806046V197.411889L959.66688 78.605842v747.767945z m-479.83056 118.742069L63.983168 826.373787V78.605842L479.83632 197.411889v747.703967zM1011.104716 7.143078a30.261314 30.261314 0 0 0-27.766195-5.885922L511.825024 135.9296 40.24755 1.257156a30.005404 30.005404 0 0 0-27.702218 5.885922A34.739733 34.739733 0 0 0 0.00576 34.205521V852.540547a33.908026 33.908026 0 0 0 23.735618 32.948365l479.83056 137.039608a30.261314 30.261314 0 0 0 16.506171 0l479.83056-137.039608A33.908026 33.908026 0 0 0 1023.644288 852.540547V34.205521a34.739733 34.739733 0 0 0-12.539572-27.062443zM151.696194 683.320303l223.920928 63.977407a31.029043 31.029043 0 0 0 8.317063 1.151594 32.372568 32.372568 0 0 0 30.837111-25.271076c4.542396-18.169584-5.566034-36.914964-22.648003-41.777248l-223.920927-63.977408c-16.954013-4.798306-34.5478 5.949899-39.154174 24.183461-4.542396 18.169584 5.566034 36.850987 22.648002 41.71327z m0-170.499793l223.920928 63.977408A28.278014 28.278014 0 0 0 383.870208 577.949512a32.372568 32.372568 0 0 0 30.837111-25.271077c4.542396-18.169584-5.566034-36.914964-22.648003-41.777247l-223.920928-63.977408c-16.890036-4.798306-34.483823 5.949899-39.090196 24.18346-4.542396 18.169584 5.566034 36.850987 22.648002 41.71327z m0-170.435815l223.920928 63.977408A30.581201 30.581201 0 0 0 383.870208 407.513697a32.372568 32.372568 0 0 0 30.837111-25.271076c4.542396-18.169584-5.566034-36.914964-22.648003-41.777248l-223.920928-63.977408c-16.890036-4.862283-34.483823 5.885922-39.090196 24.119483-4.542396 18.169584 5.566034 36.914964 22.648002 41.777247z" fill="#515151" p-id="8991"></path></svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

4
frontend/public/docx/assets/radio.37698364.svg

@ -0,0 +1,4 @@
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="10" stroke="#3d4757" stroke-width="1.5" fill="none" />
<circle cx="12" cy="12" r="3.5" fill="#3d4757" />
</svg>

After

Width:  |  Height:  |  Size: 240 B

53
frontend/public/docx/index.html

@ -6,9 +6,9 @@
<link rel="icon" type="image/png" href="./assets/favicon.fbfa22e6.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>word</title>
<script type="module" crossorigin src="./assets/index.bae472f7.js"></script>
<script type="module" crossorigin src="./assets/index.5f048ec4.js"></script>
<link rel="modulepreload" href="./assets/vendor.d13e5cc9.js">
<link rel="stylesheet" href="./assets/index.6dcf988b.css">
<link rel="stylesheet" href="./assets/index.ec407d42.css">
</head>
<body>
@ -337,10 +337,59 @@
<div class="menu-item__print" data-menu="print">
<i></i>
</div>
<div class="menu-item__ai-edit" data-menu="save">
<i></i>
</div>
<div class="menu-item__save" data-menu="save">
<i></i>
</div>
</div>
<div class="menu-item__ai-edit-box hide">
<span>×</span>
<div class="ai-edit-outline-box">
<div class="ai-menu">
<p class="outline-svg active-ai"><i></i>生成大纲</p>
</div>
<div class="ai-content-box">
<div>
<label for="">标题:</label>
<input id="aiTitle" type="text" placeholder="请输入标题">
</div>
<div>
<label for="">分类:</label>
<select name="articleClassification" id="aiSelect">
<option value="论文">论文</option>
<option value="合同">合同</option>
<option value="项目">项目</option>
<option value="投标">投标</option>
<option value="招标">招标</option>
<option value="散文">散文</option>
<option value="产品说明">产品说明</option>
<option value="销售计划">销售计划</option>
<option value="年度计划">年度计划</option>
<option value="战略规划">战略规划</option>
</select>
</div>
<button id="aiArticle">生成大纲</button>
</div>
</div>
<div class="ai-edit-content-box hide">
<div class="ai-menu">
<p id="watchOutline" class="outline-svg active-ai"><i></i>查看大纲</p>
<p id="watchArticle" class="article-svg"><i></i>查看文章</p>
<button id="articleInsert">插入</button>
<button id="createArticle">生成文章</button>
</div>
<div id="outlineView" class="ai-content-box">
<textarea name="" id="outlineText"></textarea>
<span id="outlineLoader"> </span>
</div>
<div id="articleView" class="ai-content-box hide">
<textarea name="articleText" id="articleText"></textarea>
<span id="articleLoader"> </span>
</div>
</div>
</div>
</div>
<div class="catalog" editor-component="catalog">
<div class="catalog__header">

4
frontend/src/system/applist.ts

@ -80,8 +80,8 @@ export const appList = [
{
name: "document",
appIcon: "word",
//url: "/docx/index.html",
url:"http://localhost:3000/",
url: "/docx/index.html",
//url:"http://localhost:3000/",
width: 800,
frame: true,
height: 600,

1
godo/files/fs.go

@ -126,6 +126,7 @@ func HandleStat(w http.ResponseWriter, r *http.Request) {
libs.HTTPError(w, http.StatusNotFound, err.Error())
return
}
// fmt.Printf("basePath: %+s", basePath)
if osFileInfo.IsFile {
// 是否为加密文件
file, err := os.Open(filepath.Join(basePath, path))

6
godo/sys/setting.go

@ -56,6 +56,7 @@ func ConfigHandler(w http.ResponseWriter, r *http.Request) {
libs.ErrorMsg(w, "The InitOsSystem is error:"+err.Error())
return
}
}
} else if req.Name == "aiDir" {
aiPath := req.Value.(string)
@ -83,6 +84,11 @@ func ConfigHandler(w http.ResponseWriter, r *http.Request) {
libs.SetConfig(req)
}
}
err = libs.LoadConfig()
if err != nil {
libs.ErrorMsg(w, "The LoadConfig is error:"+err.Error())
return
}
libs.SuccessMsg(w, "success", "The config set success!")
}

Loading…
Cancel
Save