PageSourceSearch

https://www.catkissfish.com/catkissfish/js/csv-eeb6f2a5.js

js catkissfish.com collected 2026-10-02 06:22:20 UTC 16,137 bytes, 1 lines download raw bytes

1import{an as l}from"./entry-2b7dae43.js";import{d as T,s as p}from"./common-utils-11fea059.js";import{D as f}from"./design-canvas-def-40fef4b3.js";import{b as m,c as C}from"./index-d2454248.js";import{a as E}from"./swiper-vue-51631b96.js";const L=2;class D{constructor(e){this.dbName=e}open(e,s,n){if(!indexedDB)return alert("您的浏览器不支持该app,为了更好的体验,请使用新版chrome浏览器");const r=indexedDB.open(this.dbName,L);return new Promise((o,i)=>{r.onerror=a=>{this.onmessage({type:"数据库连接失败",message:a}),i()},r.onsuccess=a=>{this.db=a.target.result,this.onmessage({type:"数据库连接成功",message:""}),o()},r.onupgradeneeded=a=>{const g=a.target.result;if(!g.objectStoreNames.contains(e)){const R=g.createObjectStore(e,{autoIncrement:!0,keyPath:s});n&&n.length&&n.map(_=>{R.createIndex(_,_,{unique:!1})}),R.transaction.oncomplete=_=>{this.onmessage({type:"创建对象仓库成功",message:""})}}}})}onmessage(e){console.log(e.type,e.message)}update(e,s){const n=this.db.transaction([e],"readwrite").objectStore(e);return new Promise((r,o)=>{const i=n.put({...s,lastModify:new Date().getTime()});i.onsuccess=a=>{this.onmessage({type:"更新成功",message:s}),r()},i.onerror=a=>{this.onmessage({type:"更新失败",message:s}),o()}})}getList(e){const s=this.db.transaction([e]).objectStore(e);return new Promise((n,r)=>{s.getAll().onsuccess=o=>{const i=o.target.result;this.onmessage({type:"获取列表成功",message:i}),n(i)}})}getItem(e,s){const n=this.db.transaction(e).objectStore(e);return new Promise((r,o)=>{const i=n.get(s);i.onsuccess=a=>{r(a.target.result)},i.onerror=a=>{o()}})}delete(e,s){const r=this.db.transaction([e],"readwrite").objectStore(e).delete(s);return new Promise((o,i)=>{r.onsuccess=a=>{this.onmessage({type:"删除成功",message:s}),o()},r.onerror=a=>{this.onmessage({type:"删除失败",message:s}),i()}})}closeDB(){this.db.close()}deleteDB(){indexedDB.deleteDatabase(this.dbName)}}l({id:"Db",state(){return{finger:null}},actions:{SET_DB(t){this.finger=t},setLocalDb(t){const e=new D("finger");this.SET_DB(t?e:null)}},getters:{finger(){return this.finger}}});const N={list:[{key:"SINGLE_38",action:"moveUp",code:"MOVE_UP",title:"design.action.moveUp",name:"上移动",detail:"Up"},{key:"SINGLE_40",action:"moveDown",code:"MOVE_DOWN",title:"design.action.moveDown",name:"下移动",detail:"Down"},{key:"SINGLE_37",action:"moveLeft",code:"MOVE_LEFT",title:"design.action.moveLeft",name:"左移动",detail:"Left"},{key:"SINGLE_39",action:"moveRight",code:"MOVE_RIGHT",title:"design.action.moveRight",name:"右移动",detail:"Right"},{key:"ALT_86",action:"horizontalMirrorElement",code:"H_MIRROR",title:"design.action.hMirror",name:"水平镜像",detail:"Alt + V"},{key:"ALT_78",action:"verticalMirrorElement",code:"V_MIRROR",title:"design.action.vMirror",name:"垂直镜像",detail:"Alt + N"},{key:"CTRL_81",action:"rotateElement45",code:"ROTATE_45",title:"design.action.rotate45",name:"顺时针45°旋转",detail:"Ctrl + Q"},{key:"ALT_81",action:"rotateElement5",code:"ROTATE_5",title:"design.action.rotate5",name:"顺时针5°旋转",detail:"Alt + Q"},{key:"CTRL_90",action:"enlargeElement",code:"ENLARGE",title:"design.action.enlarge",name:"放大",detail
1:"Ctrl + Z"},{key:"ALT_90",action:"narrowElement",code:"NARROW",title:"design.action.narrow",name:"缩小",detail:"Alt + Z"},{key:"SINGLE_46",action:"deleteElement",code:"DELETE",title:"design.action.delete",name:"删除",detail:"Delete"},{key:"CTRL_83",action:"save",code:"SAVE",title:"design.save",name:"保存产品",detail:"Ctrl + S"},{key:"CTRL_112",action:"toggleProduct",code:"SELECT",title:"design.action.product",name:"选择产品",detail:"Ctrl + F1"},{key:"CTRL_113",action:"toggleTopic",code:"TOPIC",title:"design.action.topic",name:"主题设计",detail:"Ctrl + F2"},{key:"CTRL_114",action:"toggleBackground",code:"BACKGROUND",title:"design.action.background",name:"背景设计",detail:"Ctrl + F3"},{key:"CTRL_88",action:"setElementMax",code:"MAX",title:"design.action.max",name:"最大化",detail:"Ctrl + X"},{key:"SHIFT_67",action:"copyElement",code:"COPY",title:"design.action.copy",name:"复制",detail:"Shift + C"},{key:"CTRL_66",action:"setElementWidthMax",code:"WIDTH_MAX",title:"design.action.widthMax",name:"宽度最大化",detail
1:"Ctrl + B"},{key:"ALT_66",action:"setElementHeightMax",code:"HEIGHT_MAX",title:"design.action.heightMax",name:"高度最大化",detail:"Alt + B"},{key:"ALT_82",action:"redesign",code:"REDESIGN",title:"design.action.redesign",name:"重新设计",detail:"Alt + R"},{key:"ALT_83",action:"tileBase",code:"TILE",title:"design.action.tile",name:"图案平铺-基础",detail:"Alt + S"},{key:"ALT_67",action:"tileMirror",code:"TILE_MIRROR",title:"design.action.tileMirror",name:"图案平铺-镜像",detail:"Alt + C"},{key:"ALT_88",action:"tileFull",code:"TILE_FULL",title:"design.action.tileFull",name:"铺满设计区域",detail:"Alt + X"},{key:"CTRL_38",action:"moveUpLayer",code:"MOVE_UP_LAYER",title:"design.action.upLayer",name:"上移一层",detail:"Ctrl + Up"},{key:"CTRL_40",action:"moveDownLayer",code:"MOVE_DOWN_LAYER",title:"design.action.downLayer",name:"下移一层",detail:"Ctrl + Down"},{key:"CTRL_72",action:"horizontalCenterElement",code:"H_CENTER",title:"design.action.hCenter",name:"水平居中",detail:"Ctrl + H"},{key:"CTRL_86",action:"verticalCenterElement",code:"V_CENTER",title:"design.action.vCenter",name:"整体居中",detail:"Ctrl + V"}],KEY_MAP:[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,8,9,12,13,16,17,18,20,27,32,33,34,35,36,37,38,39,40,45,46,144,186,187,188,189,190,191,192,219,220,221,222],specialKey:{Alt:"Alt",Shift:"Shift",Control:"Ctrl",list:["Alt","Shift","Control"]}},u=N.list;let S=null,h=null;S=localStorage.getItem("shortcut_key"),h=localStorage.getItem("env_list");function O(){const t=Object.assign({});return u.forEach(e=>{e.key&&(t[e.key]=e.action)}),t}l({id:"DesignShortcut",state(){return{defaultShortcut:O(),shortcutKey:S?JSON.parse(S):O(),defaultEventList:u,eventList:h?JSON.parse(h):T(u),isEditing:!1,isStopDoEven:!1}},actions:{SET_SHORTCUT(t){localStorage.setItem("shortcut_key",JSON.stringify(t)),this.shortcutKey=t},SET_EVENT_LIST(t){localStorage.setItem("env_list",JSON.stringify(t)),this.eventList=t},SET_EDITING_STATE(t){this.isEditing=t},SET_DO_EVEN_STATE(t){this.isStopDoEven=t},initShortcut(){this.SET_SHORTCUT(T(this.shortcutKey))},resetShortcut(){this.SET_SHORTCUT(T(this.defaultShortcut)),this.SET_EVENT_LIST(T(this.defaultEventList))},updateEventList(t){const e=this.shortcutKey;for(const s in e)console.log("key",s),e.hasOwnProperty(s)&&e[s]&&(e[s]=null);t.forEach(s=>{s.key&&(e[s.key]=s.action)}),console.log("shortcutKey",e),this.SET_SHORTCUT(e),this.SET_EVENT_LIST(t)},updateEditingState(t){this.SET_EDITING_STATE(t)},updateDoEventState(t){this.SET_DO_EVEN_STATE(t)}}});const G=l({id:"DesignUpload",state(){return{uploading:!1,uploadedPercent:0}},actions:{SET_UPLOADING(t){this.$state.uploading=t},SET_UPLOADED_PERCENT(t){this.$state.uploadedPercent=t},setUploading(t){this.SET_UPLOADING(t)},setUploadedPercent(t){this.SET_UPLOADED_PERCENT(t)}},getters:{uploadingGetters(){return this.uploading},uploadedPercentGetters(){return this.uploadedPercent}}});sessionStorage.getItem("all_layer"),sessionStorage.getItem("curr_layer_id");l({id:"Layer",state(){return{allLayer:allLayer?JSON.parse(allLayer):null,currentLayerId:currentLayerId||null,currentTextureId:null,designHistoryCanvasDataList:[],tempDesignHistoryEffects:null,tempTextureList:[],isLoadingDesignHistory:!1,isCashingTempTextureList:!0,isRendering:!1,isReRender:!1,isRemoveLayerItem:!1,isReRenderAllPosition:!1}},actions:{SET_All_LAYER(t){sessionStorage.setItem("all_layer",JSON.stringify(t)),this.$state.allLayer=t},SET_CURRENT_LAYER_ID(t){sessionStorage.setItem("curr_layer_id",t),this.$state.currentLayerId=t},SET_CURRENT_TEXTURE_ID(t){this.currentTextureId=t},SET_TEMP_TEXTURE_LIST(t){this.tempTextureList=t},SET_TEMP_TEXTURE_LIST_CASH_STATE(t){this.isCashingTempTextureList=t},SET_LOADING_DESIGN_HISTORY_STATE(t){this.isLoadingDesignHistory=t},SET_RENDER_STATE(t){this.isRendering=t},SET_RERENDER_STATE(t){this.isReRender=t},SET_RERENDER_ALL_POSITION_STATE(t){this.isReRenderAllPosition=t},SET_REMOVE_LAYER_ITEM_STATE(t){this.isRemoveLayerItem=t},SET_CANVAS_DATA(t){this.designHistoryCanvasDataList=t},SET_TEMP_EFFECTS(t){this.tempDesignHistoryEffects=t},initLayer(t){this.SET_All_LAYER(t),this.SET_CURRENT_LAYER_ID(t[0]?t[0].id:null)},updateLayer(t){t&&this.SET_All_LAYER(t)},updateLayerId(t){this.SET_CURRENT_LAYER_ID(t)},updateTextureId(t){this.SET_CURRENT_TEXTURE_ID(t)},updateTempTextureListCashState(t){this.SET_TEMP_TEXTURE_LIST_CASH_STATE(t)},updateTempTextureList(t){this.SET_TEMP_TEXTURE_LIST(t)}
1,setLoadingDesignHistoryState(t){this.SET_LOADING_DESIGN_HISTORY_STATE(t)},setRenderState(t){this.SET_RENDER_STATE(t)},setReRenderState(t){this.SET_RERENDER_STATE(t)},setReRenderAllPositionState(t){this.SET_RERENDER_ALL_POSITION_STATE(t)},setRemoveLayerItemState(t){this.SET_REMOVE_LAYER_ITEM_STATE(t)},setCanvasData(t){this.SET_CANVAS_DATA(t)},setTempDesignHistoryEffects(t){this.SET_TEMP_EFFECTS(t)}},getters:{allLayer(){return this.allLayer},currentLayerId(){return this.currentLayerId},currentTextureId(){return this.currentTextureId},designHistoryCanvasDataList(){return this.designHistoryCanvasDataList},tempDesignHistoryEffects(){return this.tempDesignHistoryEffects},tempTextureList(){return this.tempTextureList},isLoadingDesignHistory(){return this.isLoadingDesignHistory},isCashingTempTextureList(){return this.isCashingTempTextureList},isRendering(){return this.isRendering},isReRender(){return this.isReRender},isReRenderAllPosition(){return this.isReRenderAllPosition},isRemoveLayerItem(){return this.isRemoveLayerItem}}});l({id:"Order",state(){return{designHistoryName:null,designHistorySKU:null,designHistoryId:null,prepareOrderInfo:null}},actions:{SET_DESIGN_HISTORY_INFO({name:t,sku:e}){this.designHistoryName=t,this.designHistorySKU=e},SET_DESIGN_HISTORY_ID(t){this.designHistoryId=t},SET_PREPARE_ORDER_INFO(t){this.prepareOrderInfo=t},setDesignHistoryInfo(t){this.SET_DESIGN_HISTORY_INFO(t)},setDesignHistoryId(t){console.log("这个是返回的请求结果====,获取历史记录的id",t),this.SET_DESIGN_HISTORY_ID(t)},setPrepareOrderInfo(t){this.SET_PREPARE_ORDER_INFO(t)}},getters:{designHistoryName(){return this.designHistoryName},designHistorySKU(){return this.designHistorySKU},designHistoryId(){return this.designHistoryId},prepareOrderInfo(){return this.prepareOrderInfo}}});l({id:"ProductDesignInfo",state(){return{isNewDesignPattern:f.IS_NEW_PATTERN.yes}},actions:{SET_DESIGN_PATTERN(t){this.isNewDesignPattern=t},setDesignPattern(t){this.SET_DESIGN_PATTERN(t)}},getters:{isNewDesignPattern(){return this.isNewDesignPattern}}});l({id:"Topic",state(){return{showingTopicInfo:null,isHiddenTopicInfo:!1,currentTopicInfo:null,currentTextInfo:null,backgroundColor:null,isPickingColor:!1,updateText:!1,isDoing:!1}},actions:{SET_SHOWING_TOPIC_INFO(t){this.showingTopicInfo=t},SET_CURRENT_TOPIC_INFO(t){this.currentTopicInfo=t},SET_CURRENT_TEXT_INFO(t){this.currentTextInfo=t},UPDATE_TEXT(t){this.updateText=t,p(100).then(()=>{this.updateText=!1})},SET_BACKGROUND_COLOR(t){this.$state.backgroundColor=t},SET_PICK_COLOR_STATE(t){this.isPickingColor=t},SET_DOING(t){this.isDoing=t},HIDDEN_SHOWING_TOPIC_INFO(t){this.isHiddenTopicInfo=t},setShowingTopicInfo(t){this.SET_SHOWING_TOPIC_INFO(t)},setCurrentTopicInfo(t){if(t){if(this.HIDDEN_SHOWING_TOPIC_INFO(!1),this.showingTopicInfo&&this.showingTopicInfo===t)return!1;this.SET_CURRENT_TOPIC_INFO(t)}else this.HIDDEN_SHOWING_TOPIC_INFO(!0)},setCurrentTextInfo(t){this.UPDATE_TEXT(t.update),this.SET_CURRENT_TEXT_INFO(t.text)},setDoing(t){this.SET_DOING(t)},setBackgroundColor(t){this.SET_BACKGROUND_COLOR(t)},setPickColorState(t){this.SET_PICK_COLOR_STATE(t)}},getters:{showingTopicInfo(){return this.showingTopicInfo},currentTopicInfo(){return this.currentTopicInfo},currentTextInfo(){return this.currentTextInfo},backgroundColor(){return this.backgroundColor},updateText(){return this.updateText},isDoing(){return this.isDoing},isHiddenTopicInfo(){return this.isHiddenTopicInfo},isPickingColor(){return this.isPickingColor}}});let c,d,I;c=sessionStorage.getItem("pro_info"),d=localStorage.getItem("temp_product_cart_info"),I=localStorage.getItem("current_product_size");const M=l({id:"Product",state(){return{currentProductInfo:c!=="undefined"&&c?JSON.parse(c):null,showingProductInfo:null,isHiddenProductInfo:!1,productSheetInfo:[],productSizeInfo:[],productCropInfo:[],threeModelInfo:null,currentProductSize:I?Number(I):null,categoryList:[],category:null,materialList:[],material:null,tempProductCartInfo:d!=="undefined"&&d?JSON.parse(d):null}},actions:{SET_SHOWING_PRODUCT_INFO(t){this.$state.showingProductInfo=t},SET_CURRENT_PRODUCT_INFO(t){sessionStorage.setItem("pro_info",JSON.stringify(t)),this.$state.currentProductInfo=t},SET_PRODUCT_SHEET_INFO(t){this.$state.productSheetInfo=t||[]},SET_PRODUCT_SIZE_INFO(t){this.$state.productSizeInfo=t||[]},SET_PRODUCT_CROP_INFO(t){this.$state.productCropInfo=t||[]},SET_PRODUCT_SIZE(t){this.$state.currentProductSize=t},SET_CATEGORY_LIST(t){this.$state.categoryList=t},SET_MATERIAL_LIST(t){this.$state.materialList=t},SET_MATERIAL(t){this.$state.material=t},SET_CATEGORY(t){this.$state.category=t},SET_THREE_MODEL_INFO(t){this.$state.threeModelInfo=t},SET_TEMP_PRODUCT_CART_INFO(t){localStorage.setItem("temp_product_cart_info",JSON.stringify(t)),this.$state.tempProductCartInfo=t},HIDDEN_SHOWING_PRODUCT_INFO(t){this.$state.isHiddenProductInfo=t},setProductSize(t){localStorage.setItem("current_product_size",t),this.SET_PRODUCT_SIZE(t)},setCategoryList(t){this.SET_CATEGORY_LIST(t)},setMaterialList(t){this.SET_MATERIAL_LIST(t)},setMaterial(t){this.SET_MATERIAL(t)},setCategory(t){this.SET_CATEGORY(t)},setShowingProductInfo(t){if(t){if(this.HIDDEN_SHOWING_PRODUCT_INFO(!1),this.showingProductInfo&&this.showingProductInfo===t)return!1;this.SET_SHOWING_PRODUCT_INFO(t)}else this.HIDDEN_SHOWING_PRODUCT_INFO(!0)},setCurrentProductInfo(t){const{productInfo:e,sheetInfo:s,sizeInfo:n,threeModelInfo:r,cropInfo:o}=t;let i=t.currentProductSize;i===null&&(i=n?n[0].size:null),this.SET_CURRENT_PRODUCT_INFO(e),this.SET_PRODUCT_SHEET_INFO(s),this.SET_PRODUCT_SIZE_INFO(n),this.SET_PRODUCT_SIZE(i),this.SET_PRODUCT_CROP_INFO(o),this.SET_THREE_MODEL_INFO(r)},setTempProductCartInfo(t){this.SET_TEMP_PRODUCT_CART_INFO(t)}},getters:{showingProductInfoGetters(){return this.showingProductInfo},currentProductInfoGetters(){return this.currentProductInfo},productCropInfoGetters(){return this.productCropInfo},productSheetInfoGetters(){return this.productSheetInfo},productSizeInfoGetters(){return this.productSizeInfo},threeModelInfoGetters(){return this.threeModelInfo},currentProductSizeGetters(){return this.currentProductSize},categoryListGetters(){return this.categoryList},categoryGetters(){return this.category},materialListGetters(){return this.materialList},materialGetters(){return this.material},tempProductCartInfoGetters(){return this.tempProductCartInfo},isHiddenProductInfoGetters(){return this.isHiddenProductInfo}}}),v=l("blog",()=>{const t=E([]),e=E(""),s=E(null);return{navList:t,allPath:e,data:s,getData:async()=>{var r,o;try{const i=await m();if(s.value=i.data,e.value=((r=i.data)==null?void 0:r.path)||"",(o=i.data)!=null&&o.id){const a=await C(i.data.id);t.value=a.data||[]}else t.value=[]}catch(i){return Promise.reject(i||"UNKNOW ERROR")}}}}),k=l({id:"liveChat",state(){return{isOpen:1}},actions:{openChat(){this.$state.isOpen=Math.random()}},getters:{isOpenGetter(){return this.$state.isOpen}}}),F=l({id:"Csv",state(){return{loading:!1,res:null}},actions:{changeStatus(){this.$state.loading=!this.loading},close(){this.$state.loading=!1},fillRes(t){this.$state.res=t}},getters:{getStatus(){return this.$state.loading},getRes(){return this.$state.res}}});
1export{v as a,G as b,M as c,F as d,k as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.