diff --git a/src/renderer/src/assets/iconfont/iconfont.css b/src/renderer/src/assets/iconfont/iconfont.css index 34124e7..b8318ab 100644 --- a/src/renderer/src/assets/iconfont/iconfont.css +++ b/src/renderer/src/assets/iconfont/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 2794390 */ - src: url('iconfont.woff2?t=1720677380684') format('woff2'), - url('iconfont.woff?t=1720677380684') format('woff'), - url('iconfont.ttf?t=1720677380684') format('truetype'); + src: url('iconfont.woff2?t=1720688923236') format('woff2'), + url('iconfont.woff?t=1720688923236') format('woff'), + url('iconfont.ttf?t=1720688923236') format('truetype'); } .iconfont { @@ -13,6 +13,94 @@ -moz-osx-font-smoothing: grayscale; } +.icon-avi:before { + content: "\e65e"; +} + +.icon-access:before { + content: "\e65f"; +} + +.icon-docx:before { + content: "\e660"; +} + +.icon-folder:before { + content: "\e661"; +} + +.icon-excel:before { + content: "\e662"; +} + +.icon-gif:before { + content: "\e663"; +} + +.icon-jpeg:before { + content: "\e664"; +} + +.icon-jpg:before { + content: "\e665"; +} + +.icon-mp:before { + content: "\e666"; +} + +.icon-mov:before { + content: "\e667"; +} + +.icon-pdf:before { + content: "\e668"; +} + +.icon-ppt:before { + content: "\e669"; +} + +.icon-papers:before { + content: "\e66a"; +} + +.icon-pptx:before { + content: "\e66b"; +} + +.icon-psd:before { + content: "\e66c"; +} + +.icon-rar:before { + content: "\e66d"; +} + +.icon-txt:before { + content: "\e66e"; +} + +.icon-zip:before { + content: "\e66f"; +} + +.icon-video:before { + content: "\e670"; +} + +.icon-xlsx:before { + content: "\e671"; +} + +.icon-png:before { + content: "\e673"; +} + +.icon-word:before { + content: "\e674"; +} + .icon-shenglvehao:before { content: "\e64f"; } @@ -21,18 +109,6 @@ content: "\e602"; } -.icon-pdf:before { - content: "\e803"; -} - -.icon-ppt:before { - content: "\e806"; -} - -.icon-word:before { - content: "\e807"; -} - .icon-guanbi:before { content: "\e60f"; } diff --git a/src/renderer/src/assets/iconfont/iconfont.js b/src/renderer/src/assets/iconfont/iconfont.js index 0b5fd46..8ec663d 100644 --- a/src/renderer/src/assets/iconfont/iconfont.js +++ b/src/renderer/src/assets/iconfont/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_2794390='',function(a){var l=(l=document.getElementsByTagName("script"))[l.length-1],t=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var i,h,e,c,o,d=function(l,t){t.parentNode.insertBefore(l,t)};if(t&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}i=function(){var l,t=document.createElement("div");t.innerHTML=a._iconfont_svg_string_2794390,(t=t.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",t=t,(l=document.body).firstChild?d(t,l.firstChild):l.appendChild(t))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(h=function(){document.removeEventListener("DOMContentLoaded",h,!1),i()},document.addEventListener("DOMContentLoaded",h,!1)):document.attachEvent&&(e=i,c=a.document,o=!1,n(),c.onreadystatechange=function(){"complete"==c.readyState&&(c.onreadystatechange=null,p())})}function p(){o||(o=!0,e())}function n(){try{c.documentElement.doScroll("left")}catch(l){return void setTimeout(n,50)}p()}}(window); \ No newline at end of file +window._iconfont_svg_string_2794390='',function(l){var h=(h=document.getElementsByTagName("script"))[h.length-1],v=h.getAttribute("data-injectcss"),h=h.getAttribute("data-disable-injectsvg");if(!h){var c,a,t,z,p,i=function(h,v){v.parentNode.insertBefore(h,v)};if(v&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(h){console&&console.log(h)}}c=function(){var h,v=document.createElement("div");v.innerHTML=l._iconfont_svg_string_2794390,(v=v.getElementsByTagName("svg")[0])&&(v.setAttribute("aria-hidden","true"),v.style.position="absolute",v.style.width=0,v.style.height=0,v.style.overflow="hidden",v=v,(h=document.body).firstChild?i(v,h.firstChild):h.appendChild(v))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(c,0):(a=function(){document.removeEventListener("DOMContentLoaded",a,!1),c()},document.addEventListener("DOMContentLoaded",a,!1)):document.attachEvent&&(t=c,z=l.document,p=!1,d(),z.onreadystatechange=function(){"complete"==z.readyState&&(z.onreadystatechange=null,M())})}function M(){p||(p=!0,t())}function d(){try{z.documentElement.doScroll("left")}catch(h){return void setTimeout(d,50)}M()}}(window); \ No newline at end of file diff --git a/src/renderer/src/assets/iconfont/iconfont.json b/src/renderer/src/assets/iconfont/iconfont.json index 4a6a467..7f7f82d 100644 --- a/src/renderer/src/assets/iconfont/iconfont.json +++ b/src/renderer/src/assets/iconfont/iconfont.json @@ -5,6 +5,160 @@ "css_prefix_text": "icon-", "description": "", "glyphs": [ + { + "icon_id": "6347314", + "name": "avi", + "font_class": "avi", + "unicode": "e65e", + "unicode_decimal": 58974 + }, + { + "icon_id": "6347315", + "name": "access", + "font_class": "access", + "unicode": "e65f", + "unicode_decimal": 58975 + }, + { + "icon_id": "6347316", + "name": "docx", + "font_class": "docx", + "unicode": "e660", + "unicode_decimal": 58976 + }, + { + "icon_id": "6347317", + "name": "folder", + "font_class": "folder", + "unicode": "e661", + "unicode_decimal": 58977 + }, + { + "icon_id": "6347318", + "name": "excel", + "font_class": "excel", + "unicode": "e662", + "unicode_decimal": 58978 + }, + { + "icon_id": "6347319", + "name": "gif", + "font_class": "gif", + "unicode": "e663", + "unicode_decimal": 58979 + }, + { + "icon_id": "6347320", + "name": "jpeg", + "font_class": "jpeg", + "unicode": "e664", + "unicode_decimal": 58980 + }, + { + "icon_id": "6347321", + "name": "jpg", + "font_class": "jpg", + "unicode": "e665", + "unicode_decimal": 58981 + }, + { + "icon_id": "6347322", + "name": "mp3", + "font_class": "mp", + "unicode": "e666", + "unicode_decimal": 58982 + }, + { + "icon_id": "6347323", + "name": "mov", + "font_class": "mov", + "unicode": "e667", + "unicode_decimal": 58983 + }, + { + "icon_id": "6347324", + "name": "pdf", + "font_class": "pdf", + "unicode": "e668", + "unicode_decimal": 58984 + }, + { + "icon_id": "6347325", + "name": "ppt", + "font_class": "ppt", + "unicode": "e669", + "unicode_decimal": 58985 + }, + { + "icon_id": "6347326", + "name": "papers", + "font_class": "papers", + "unicode": "e66a", + "unicode_decimal": 58986 + }, + { + "icon_id": "6347327", + "name": "pptx", + "font_class": "pptx", + "unicode": "e66b", + "unicode_decimal": 58987 + }, + { + "icon_id": "6347328", + "name": "psd", + "font_class": "psd", + "unicode": "e66c", + "unicode_decimal": 58988 + }, + { + "icon_id": "6347329", + "name": "rar", + "font_class": "rar", + "unicode": "e66d", + "unicode_decimal": 58989 + }, + { + "icon_id": "6347331", + "name": "txt", + "font_class": "txt", + "unicode": "e66e", + "unicode_decimal": 58990 + }, + { + "icon_id": "6347333", + "name": "zip", + "font_class": "zip", + "unicode": "e66f", + "unicode_decimal": 58991 + }, + { + "icon_id": "6347334", + "name": "video", + "font_class": "video", + "unicode": "e670", + "unicode_decimal": 58992 + }, + { + "icon_id": "6348230", + "name": "xlsx", + "font_class": "xlsx", + "unicode": "e671", + "unicode_decimal": 58993 + }, + { + "icon_id": "6348231", + "name": "png", + "font_class": "png", + "unicode": "e673", + "unicode_decimal": 58995 + }, + { + "icon_id": "6348233", + "name": "word", + "font_class": "word", + "unicode": "e674", + "unicode_decimal": 58996 + }, { "icon_id": "34273050", "name": "省略号", @@ -19,27 +173,6 @@ "unicode": "e602", "unicode_decimal": 58882 }, - { - "icon_id": "11441567", - "name": "pdf", - "font_class": "pdf", - "unicode": "e803", - "unicode_decimal": 59395 - }, - { - "icon_id": "11447679", - "name": "ppt2", - "font_class": "ppt", - "unicode": "e806", - "unicode_decimal": 59398 - }, - { - "icon_id": "11447681", - "name": "word2", - "font_class": "word", - "unicode": "e807", - "unicode_decimal": 59399 - }, { "icon_id": "4736203", "name": "关闭", diff --git a/src/renderer/src/assets/iconfont/iconfont.ttf b/src/renderer/src/assets/iconfont/iconfont.ttf index c0ed1b5..76651ab 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.ttf and b/src/renderer/src/assets/iconfont/iconfont.ttf differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff b/src/renderer/src/assets/iconfont/iconfont.woff index b97a0e2..d66cc09 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff and b/src/renderer/src/assets/iconfont/iconfont.woff differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff2 b/src/renderer/src/assets/iconfont/iconfont.woff2 index 4e03626..324468b 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff2 and b/src/renderer/src/assets/iconfont/iconfont.woff2 differ diff --git a/src/renderer/src/components/upload-dialog/index.vue b/src/renderer/src/components/upload-dialog/index.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/renderer/src/views/login/index.vue b/src/renderer/src/views/login/index.vue index 4f02fb0..8aec725 100644 --- a/src/renderer/src/views/login/index.vue +++ b/src/renderer/src/views/login/index.vue @@ -101,7 +101,7 @@ const getCookie = () => { } onMounted(()=>{ - ipcRenderer.send('set-winsize',{x:888,y: 520}) + // ipcRenderer.send('set-winsize',{x:888,y: 520}) getCookie() }) // 最小化 diff --git a/src/renderer/src/views/resource/container/create-resoure.vue b/src/renderer/src/views/resource/container/create-resoure.vue new file mode 100644 index 0000000..57ac9ea --- /dev/null +++ b/src/renderer/src/views/resource/container/create-resoure.vue @@ -0,0 +1,80 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/resource/container/resoure-list.vue b/src/renderer/src/views/resource/container/resoure-list.vue index 3b42007..85607cd 100644 --- a/src/renderer/src/views/resource/container/resoure-list.vue +++ b/src/renderer/src/views/resource/container/resoure-list.vue @@ -13,17 +13,19 @@ 下载3次 -
- +
+ -
-

预览

-

编辑

-
+
- + 备课 @@ -42,14 +44,19 @@ - \ No newline at end of file diff --git a/src/renderer/src/views/resource/container/resoure-search.vue b/src/renderer/src/views/resource/container/resoure-search.vue index 7e39d64..42b7d29 100644 --- a/src/renderer/src/views/resource/container/resoure-search.vue +++ b/src/renderer/src/views/resource/container/resoure-search.vue @@ -22,7 +22,7 @@ item.text }}
- + 新建资源
diff --git a/src/renderer/src/views/resource/index.vue b/src/renderer/src/views/resource/index.vue index 798e722..efc711c 100644 --- a/src/renderer/src/views/resource/index.vue +++ b/src/renderer/src/views/resource/index.vue @@ -3,23 +3,31 @@
- - + +
diff --git a/src/renderer/src/views/resource/store.js b/src/renderer/src/views/resource/store.js index 2f04718..8dbfb95 100644 --- a/src/renderer/src/views/resource/store.js +++ b/src/renderer/src/views/resource/store.js @@ -61,7 +61,9 @@ export default defineStore('resource', { curTab: 1, curType: 1, curFormat: -1, - searchKey: '' + searchKey: '', + // 新建资源 + isCreate: false, }), actions: { changeTab(val) {