From 92c45602f9ce4b8f1dc8722fd47b9c332f16927f Mon Sep 17 00:00:00 2001 From: PeratX <1215714524@qq.com> Date: Fri, 15 Nov 2019 09:17:08 +0800 Subject: [PATCH] MainActivity: add loading scene --- app/build.gradle | 2 +- app/src/main/assets/img/skhynix.41d601b4.svg | 145 ------------------ app/src/main/assets/img/skhynix.eb49a60b.svg | 57 +++++++ app/src/main/assets/index.html | 13 +- .../js/{app.4f20389e.js => app.7a86c6a9.js} | 2 +- ...0c177b73.js => chunk-061a1e78.bbe75103.js} | 0 ...468f5125.js => chunk-0ca3d34e.3cdabab2.js} | 0 .../main/assets/js/chunk-2d0c87cd.075ee198.js | 1 + .../main/assets/js/chunk-2d0c87cd.2a4166a6.js | 1 - .../main/assets/js/chunk-2d225f66.1636d334.js | 1 - .../main/assets/js/chunk-2d225f66.df3aa277.js | 1 + .../main/assets/js/chunk-373ae168.8582ca61.js | 1 - .../main/assets/js/chunk-373ae168.a15fffc7.js | 1 + .../org/itxtech/flashmaster/MainActivity.kt | 9 ++ app/src/main/res/layout/activity_main.xml | 38 ++++- app/src/main/res/values-zh-rCN/strings.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- app/src/main/res/values/styles.xml | 1 + 18 files changed, 119 insertions(+), 158 deletions(-) delete mode 100644 app/src/main/assets/img/skhynix.41d601b4.svg create mode 100644 app/src/main/assets/img/skhynix.eb49a60b.svg rename app/src/main/assets/js/{app.4f20389e.js => app.7a86c6a9.js} (98%) rename app/src/main/assets/js/{chunk-061a1e78.0c177b73.js => chunk-061a1e78.bbe75103.js} (100%) rename app/src/main/assets/js/{chunk-0ca3d34e.468f5125.js => chunk-0ca3d34e.3cdabab2.js} (100%) create mode 100644 app/src/main/assets/js/chunk-2d0c87cd.075ee198.js delete mode 100644 app/src/main/assets/js/chunk-2d0c87cd.2a4166a6.js delete mode 100644 app/src/main/assets/js/chunk-2d225f66.1636d334.js create mode 100644 app/src/main/assets/js/chunk-2d225f66.df3aa277.js delete mode 100644 app/src/main/assets/js/chunk-373ae168.8582ca61.js create mode 100644 app/src/main/assets/js/chunk-373ae168.a15fffc7.js diff --git a/app/build.gradle b/app/build.gradle index a6ccbbf..08da2bb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,7 +11,7 @@ android { applicationId "org.itxtech.flashmaster" minSdkVersion 21 targetSdkVersion 29 - versionCode 1 + versionCode 2 versionName "1.0.0" buildConfigField "String", "BUILD_TIME", "\"${System.currentTimeMillis()}\"" diff --git a/app/src/main/assets/img/skhynix.41d601b4.svg b/app/src/main/assets/img/skhynix.41d601b4.svg deleted file mode 100644 index a174f8b..0000000 --- a/app/src/main/assets/img/skhynix.41d601b4.svg +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/assets/img/skhynix.eb49a60b.svg b/app/src/main/assets/img/skhynix.eb49a60b.svg new file mode 100644 index 0000000..a0086dd --- /dev/null +++ b/app/src/main/assets/img/skhynix.eb49a60b.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/assets/index.html b/app/src/main/assets/index.html index bf281f0..29297ab 100644 --- a/app/src/main/assets/index.html +++ b/app/src/main/assets/index.html @@ -1 +1,12 @@ -iTXTech FlashMaster
\ No newline at end of file +iTXTech FlashMaster
\ No newline at end of file diff --git a/app/src/main/assets/js/app.4f20389e.js b/app/src/main/assets/js/app.7a86c6a9.js similarity index 98% rename from app/src/main/assets/js/app.4f20389e.js rename to app/src/main/assets/js/app.7a86c6a9.js index 907f098..c7d3dfd 100644 --- a/app/src/main/assets/js/app.4f20389e.js +++ b/app/src/main/assets/js/app.7a86c6a9.js @@ -1 +1 @@ -(function(e){function t(t){for(var r,n,i=t[0],c=t[1],A=t[2],l=0,u=[];lFDB Generation Time: {1}
Include {2} Part Numbers
Include {3} Flash Ids
Include {4} Micron FBGA Codes
Supported Controllers:
{5}"},vendors:{samsung:"Samsung",skhynix:"SK Hynix",micron:"Micron",intel:"Intel",westerndigital:"Western Digital",kioxia:"Kioxia",st:"STMicroelectronics",spectek:"SpecTek"},unknown:"Unknown",query:"Decode PN",search:"Search PN",searchId:"Search Id",partNumber:"Part Number",partNumberOrFlashId:"Part Number or Flash Id",vendor:"Vendor",type:"Type",density:"Density",deviceWidth:"Device Width",processNode:"Process Node",cellLevel:"Cell Level",generation:"Generation",voltage:"Voltage",package:"Package",sync:"Sync",async:"Async",ce:"CE Pin",ch:"Channel",die:"Die",rb:"R/B",extraInfo:"Extra Info",controllers:"Controllers",comment:"Comment",name:"Name",value:"Value",copy:"Copy",copySucc:"Copy successfully.",copyFail:"Copy failed: {0}",close:"Close",flashIds:"Flash Ids",flashId:"Flash Id",action:"Action",about:'iTXTech FlashMaster
Built with Vue.js and Vuetify
This program is licensed under Apache License 2.0

Maintainers:
PeratX

Copyright (C) 2019 iTX Technologies'}},a18c:function(e,t,a){"use strict";a("d3b7");var r=a("2b0e"),n=a("8c4f");r["a"].use(n["a"]);var o=[{path:"/",redirect:"/decode"},{path:"/decode",component:function(){return Promise.all([a.e("chunk-84ad19ec"),a.e("chunk-8680c588"),a.e("chunk-373ae168")]).then(a.bind(null,"2a1a"))},meta:{title:"nav.decodePartNumber"}},{path:"/settings",component:function(){return Promise.all([a.e("chunk-84ad19ec"),a.e("chunk-0ca3d34e")]).then(a.bind(null,"26d3"))},meta:{title:"nav.settings"}},{path:"/searchPn",component:function(){return Promise.all([a.e("chunk-84ad19ec"),a.e("chunk-8680c588"),a.e("chunk-2d0c87cd")]).then(a.bind(null,"54a9"))},meta:{title:"nav.searchPartNumber"}},{path:"/searchId",component:function(){return Promise.all([a.e("chunk-84ad19ec"),a.e("chunk-8680c588"),a.e("chunk-2d225f66")]).then(a.bind(null,"e742"))},meta:{title:"nav.searchFlashId"}},{path:"/about",component:function(){return a.e("chunk-061a1e78").then(a.bind(null,"f820"))},meta:{title:"nav.about"}}],s=new n["a"]({mode:"hash",base:"",scrollBehavior:function(){return{y:0}},routes:o});t["a"]=s},cf05:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAANMklEQVR4nO3dbWxUVRrA8WduL9sOIBQIliY1TFeKEoi8uC2SVV6MBjbZ3enghyWRhLAJbjAKmvWDqF1gN5sYggLqF18wuJHVrCHdZtXIGkXUuJHyppEgb2mNlaYSpagfXJ25szlFLFl67pHezu3MPP9f0hh9zqXtDPefjHPnXF+UqG1KN4t4rbZ5INLbs691nG0+FGobM3skIQtt8yAfbOxpb9tgm0c1eWa6+rtK72zYmkQ+mH26ve1w2JooapvS94h4W6wL8vJWd3vrIut8CNRen+mQCknZ5kE+WNnT3rbDNi8nvmsBgPJFAADFCACgGAEAFCMAgGIEAFCMAACKEQBAMQIAKEYAAMUIAKAYAQAUIwCAYgQAUIwAAIoRAEAxAgAoRgAAxQgAoBgBABQjAIBiBABQjAAAihEAQDECAChGAADFCACgGAEAFCMAgGIEAFCMAACKEQBAMQIAKEYAAMUIAKAYAQAUK8oA1Pwi0yqepFzrLkcgIl7I3BOprmnKHApZElkgkgr7GSThra1pyqTDlkTxrYQ/BkY+8FprmjK9jmWD5noeJCELY3geqsN/Bm9LTVNmbdiSyxZIZ8/+1oxrWdyKMgDm5PdEZrmWDbXh+J4XMxGSYf4ZpMIRqRiU5fOQ7/szi05xBgBALAgAoBgBABQjAIBiBABQjAAAipVkAJYsaJJ5c2a4lgGx+c/Bj+S1vftcy4pOSQbAnPyrlv3atQyIzdgrRhEAAKWFAACKEQBAMQIAKEYAAMUIAKAYAQAUIwCAYgQAUIwAAIoRAEAxv7Yp3exaFLucVEuFaxFQOoIKqS7Gc80X8Vpdi2LHyY8yc36j0eI719S9BDjR0SXHO7us82TVz+TmeXOs8+7Pv5CDR05Y51NTddJQX2edu76/6/h9HxyVM1+es84X39Qovj9wQc+e+1reO3hkwNkFC+bOlNEjkwPOstmc7H6nfcCZMXH8WGmaOc06P9nZJcc6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g0U977d1hq2JoqYxvUES3nrb3MvL4e4DrYts86HQd5fekAgEXrCxGDfLLYSiDACAeBAAQDECAChGAADFCACgGAEAFCMAgGIEAFCMAACKEQBAMQIAKEYAAMUIAKAYAQAUIwCAYgQAUIwAAIoRAEAxAgAoRgAAxQgAoBgBABQjAIBiBABQjAAAihEAQDECAChGAADFCACgGAEAFCMAgGIEAFCMAACKEQBAMQIAKEYAAMX+B7MiGgWG0uE2AAAAAElFTkSuQmCC"},cf61:function(e,t){e.exports={lang:"zh-CN",alert:{missingPartNumber:"请输入料号",fetchFailed:"获取失败:{0}",missingFlashId:"请输入闪存ID"},nav:{decodePartNumber:"料号查询",searchPartNumber:"料号搜索",searchFlashId:"闪存ID查询",settings:"设置",about:"关于"},settings:{server:"服务器",serverAddr:"服务器地址",translation:"自动翻译",serverInfo:"服务器信息",fdServerInfo:"iTXTech FlashDetector 服务器信息",info:"FlashDetector 数据库版本:{0}
数据库生成时间:{1}
收录 {2} 闪存料号
收录 {3} 闪存ID
收录 {4} 美光 FBGA 码
收录的控制器:
{5}"},vendors:{samsung:"三星",skhynix:"SK海力士",micron:"美光",intel:"英特尔",westerndigital:"西数",kioxia:"铠侠",st:"意法半导体",spectek:"美光白片"},unknown:"未知",query:"查询料号",search:"搜索料号",searchId:"搜索闪存ID",partNumber:"料号",partNumberOrFlashId:"料号或闪存ID",vendor:"厂商",type:"类型",density:"容量",deviceWidth:"位宽",processNode:"制程",cellLevel:"单元",generation:"代",voltage:"电压",package:"封装",sync:"同步",async:"异步",ce:"片选",ch:"通道",die:"Die",rb:"R/B",extraInfo:"更多信息",controllers:"控制器",comment:"注释",name:"名称",value:"值",copy:"复制",copySucc:"复制成功",copyFail:"复制失败",close:"关闭",flashIds:"闪存ID",flashId:"闪存ID",action:"操作",about:'iTXTech FlashMaster
使用 Vue.jsVuetify 构建
本程序遵循 Apache License 2.0 开源

主要维护者:
PeratX

支持作者:
支付宝
闲鱼

Copyright (C) 2019 iTX Technologies'}}}); \ No newline at end of file +(function(e){function t(t){for(var r,n,i=t[0],c=t[1],A=t[2],l=0,u=[];lFDB Generation Time: {1}
Include {2} Part Numbers
Include {3} Flash Ids
Include {4} Micron FBGA Codes
Supported Controllers:
{5}"},vendors:{samsung:"Samsung",skhynix:"SK Hynix",micron:"Micron",intel:"Intel",westerndigital:"Western Digital",kioxia:"Kioxia",st:"STMicroelectronics",spectek:"SpecTek"},unknown:"Unknown",query:"Decode PN",search:"Search PN",searchId:"Search Id",partNumber:"Part Number",partNumberOrFlashId:"Part Number or Flash Id",vendor:"Vendor",type:"Type",density:"Density",deviceWidth:"Device Width",processNode:"Process Node",cellLevel:"Cell Level",generation:"Generation",voltage:"Voltage",package:"Package",sync:"Sync",async:"Async",ce:"CE Pin",ch:"Channel",die:"Die",rb:"R/B",extraInfo:"Extra Info",controllers:"Controllers",comment:"Comment",name:"Name",value:"Value",copy:"Copy",copySucc:"Copy successfully.",copyFail:"Copy failed: {0}",close:"Close",flashIds:"Flash Ids",flashId:"Flash Id",action:"Action",about:'iTXTech FlashMaster
Built with Vue.js and Vuetify
This program is licensed under Apache License 2.0

Maintainers:
PeratX

Copyright (C) 2019 iTX Technologies'}},a18c:function(e,t,a){"use strict";a("d3b7");var r=a("2b0e"),n=a("8c4f");r["a"].use(n["a"]);var o=[{path:"/",redirect:"/decode"},{path:"/decode",component:function(){return Promise.all([a.e("chunk-84ad19ec"),a.e("chunk-8680c588"),a.e("chunk-373ae168")]).then(a.bind(null,"2a1a"))},meta:{title:"nav.decodePartNumber"}},{path:"/settings",component:function(){return Promise.all([a.e("chunk-84ad19ec"),a.e("chunk-0ca3d34e")]).then(a.bind(null,"26d3"))},meta:{title:"nav.settings"}},{path:"/searchPn",component:function(){return Promise.all([a.e("chunk-84ad19ec"),a.e("chunk-8680c588"),a.e("chunk-2d0c87cd")]).then(a.bind(null,"54a9"))},meta:{title:"nav.searchPartNumber"}},{path:"/searchId",component:function(){return Promise.all([a.e("chunk-84ad19ec"),a.e("chunk-8680c588"),a.e("chunk-2d225f66")]).then(a.bind(null,"e742"))},meta:{title:"nav.searchFlashId"}},{path:"/about",component:function(){return a.e("chunk-061a1e78").then(a.bind(null,"f820"))},meta:{title:"nav.about"}}],s=new n["a"]({mode:"hash",base:"",scrollBehavior:function(){return{y:0}},routes:o});t["a"]=s},cf05:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAANMklEQVR4nO3dbWxUVRrA8WduL9sOIBQIliY1TFeKEoi8uC2SVV6MBjbZ3enghyWRhLAJbjAKmvWDqF1gN5sYggLqF18wuJHVrCHdZtXIGkXUuJHyppEgb2mNlaYSpagfXJ25szlFLFl67pHezu3MPP9f0hh9zqXtDPefjHPnXF+UqG1KN4t4rbZ5INLbs691nG0+FGobM3skIQtt8yAfbOxpb9tgm0c1eWa6+rtK72zYmkQ+mH26ve1w2JooapvS94h4W6wL8vJWd3vrIut8CNRen+mQCknZ5kE+WNnT3rbDNi8nvmsBgPJFAADFCACgGAEAFCMAgGIEAFCMAACKEQBAMQIAKEYAAMUIAKAYAQAUIwCAYgQAUIwAAIoRAEAxAgAoRgAAxQgAoBgBABQjAIBiBABQjAAAihEAQDECAChGAADFCACgGAEAFCMAgGIEAFCMAACKEQBAMQIAKEYAAMUIAKAYAQAUK8oA1Pwi0yqepFzrLkcgIl7I3BOprmnKHApZElkgkgr7GSThra1pyqTDlkTxrYQ/BkY+8FprmjK9jmWD5noeJCELY3geqsN/Bm9LTVNmbdiSyxZIZ8/+1oxrWdyKMgDm5PdEZrmWDbXh+J4XMxGSYf4ZpMIRqRiU5fOQ7/szi05xBgBALAgAoBgBABQjAIBiBABQjAAAipVkAJYsaJJ5c2a4lgGx+c/Bj+S1vftcy4pOSQbAnPyrlv3atQyIzdgrRhEAAKWFAACKEQBAMQIAKEYAAMUIAKAYAQAUIwCAYgQAUIwAAIoRAEAxv7Yp3exaFLucVEuFaxFQOoIKqS7Gc80X8Vpdi2LHyY8yc36j0eI719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OOkPnUTk2OjUbR5q948LWRFEMj4HrZyj0Y9DHteFsAR6DoKLAv9MgFWUAeva3ZlxrLldtU7pZxGu1zc1fvJ4DrYPfc/snqG3M7JGELLQuyAfbug+0bbDOI6qZm05J3gu9YiXwg0U977d1hq2JoqYxvUES3nrb3MvL4e4DrYts86HQd5fekAgEXrCxGDfLLYSiDACAeBAAQDECAChGAADFCACgGAEAFCMAgGIEAFCMAACKEQBAMQIAKEYAAMUIAKAYAQAUIwCAYgQAUIwAAIoRAEAxAgAoRgAAxQgAoBgBABQjAIBiBABQjAAAihEAQDECAChGAADFCACgGAEAFCMAgGIEAFCMAACKEQBAMQIAKEYAAMX+B7MiGgWG0uE2AAAAAElFTkSuQmCC"},cf61:function(e,t){e.exports={lang:"zh-CN",alert:{missingPartNumber:"请输入料号",fetchFailed:"获取失败:{0}",missingFlashId:"请输入闪存ID"},nav:{decodePartNumber:"料号查询",searchPartNumber:"料号搜索",searchFlashId:"闪存ID查询",settings:"设置",about:"关于"},settings:{server:"服务器",serverAddr:"服务器地址",translation:"自动翻译",serverInfo:"服务器信息",fdServerInfo:"iTXTech FlashDetector 服务器信息",info:"FlashDetector 数据库版本:{0}
数据库生成时间:{1}
收录 {2} 闪存料号
收录 {3} 闪存ID
收录 {4} 美光 FBGA 码
收录的控制器:
{5}"},vendors:{samsung:"三星",skhynix:"SK海力士",micron:"美光",intel:"英特尔",westerndigital:"西数",kioxia:"铠侠",st:"意法半导体",spectek:"美光白片"},unknown:"未知",query:"查询料号",search:"搜索料号",searchId:"搜索闪存ID",partNumber:"料号",partNumberOrFlashId:"料号或闪存ID",vendor:"厂商",type:"类型",density:"容量",deviceWidth:"位宽",processNode:"制程",cellLevel:"单元",generation:"代",voltage:"电压",package:"封装",sync:"同步",async:"异步",ce:"片选",ch:"通道",die:"Die",rb:"R/B",extraInfo:"更多信息",controllers:"控制器",comment:"注释",name:"名称",value:"值",copy:"复制",copySucc:"复制成功",copyFail:"复制失败",close:"关闭",flashIds:"闪存ID",flashId:"闪存ID",action:"操作",about:'iTXTech FlashMaster
使用 Vue.jsVuetify 构建
本程序遵循 Apache License 2.0 开源

主要维护者:
PeratX

支持作者:
支付宝
闲鱼

Copyright (C) 2019 iTX Technologies'}}}); \ No newline at end of file diff --git a/app/src/main/assets/js/chunk-061a1e78.0c177b73.js b/app/src/main/assets/js/chunk-061a1e78.bbe75103.js similarity index 100% rename from app/src/main/assets/js/chunk-061a1e78.0c177b73.js rename to app/src/main/assets/js/chunk-061a1e78.bbe75103.js diff --git a/app/src/main/assets/js/chunk-0ca3d34e.468f5125.js b/app/src/main/assets/js/chunk-0ca3d34e.3cdabab2.js similarity index 100% rename from app/src/main/assets/js/chunk-0ca3d34e.468f5125.js rename to app/src/main/assets/js/chunk-0ca3d34e.3cdabab2.js diff --git a/app/src/main/assets/js/chunk-2d0c87cd.075ee198.js b/app/src/main/assets/js/chunk-2d0c87cd.075ee198.js new file mode 100644 index 0000000..e3f7035 --- /dev/null +++ b/app/src/main/assets/js/chunk-2d0c87cd.075ee198.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c87cd"],{"54a9":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("v-container",{attrs:{"grid-list-xl":"",fluid:""}},[a("v-flex",{attrs:{lg12:""}},[a("v-card",[a("v-app-bar",{attrs:{flat:"",dense:"",color:"transparent"}},[a("v-text-field",{staticClass:"pn",attrs:{flat:"",solo:"",clearable:"","prepend-icon":"mdi-magnify",placeholder:t.$t("partNumber"),"hide-details":""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.partNumber,callback:function(e){t.partNumber=e},expression:"partNumber"}}),a("v-btn",{attrs:{icon:""},on:{click:t.search}},[a("v-icon",[t._v("mdi-arrow-right")])],1)],1),a("v-divider"),a("v-card-text",[a("v-data-table",{staticClass:"elevation-1",attrs:{headers:t.pnHeaders,items:t.pns,"disable-sort":"","no-data-text":"","hide-default-footer":"","items-per-page":t.itemsPerPage,"mobile-breakpoint":NaN},scopedSlots:t._u([{key:"item.action",fn:function(e){var n=e.item;return[a("v-btn",{attrs:{icon:""},on:{click:function(e){return t.decodeFlashId(n)}}},[a("v-icon",[t._v("mdi-arrow-top-left-thick")])],1),a("v-btn",{attrs:{icon:""},on:{click:function(e){return t.copyFlashId(n)}}},[a("v-icon",[t._v("mdi-content-copy")])],1)]}}])})],1)],1)],1)],1),a("v-snackbar",{attrs:{timeout:t.snackbar.timeout},model:{value:t.snackbar.show,callback:function(e){t.$set(t.snackbar,"show",e)},expression:"snackbar.show"}},[t._v(" "+t._s(t.snackbar.text)+" "),a("v-btn",{attrs:{text:"",color:"blue"},on:{click:function(e){t.snackbar.show=!1}}},[t._v(t._s(t.$t("close")))])],1)],1)},r=[],s=(a("caad"),a("b64b"),a("d3b7"),a("ac1f"),a("2532"),a("841c"),a("1276"),a("4360")),i=a("a18c"),c={data:function(){return{itemsPerPage:1e4,snackbar:{timeout:1e3,show:!1,text:""},partNumber:"",pns:[]}},computed:{pnHeaders:function(){return[{text:this.$t("vendor"),value:"vendor",align:"left"},{text:this.$t("partNumber"),value:"pn",align:"left"},{text:this.$t("action"),value:"action"}]}},methods:{search:function(){var t=this;""!=this.partNumber?(this.partNumber=this.partNumber.toUpperCase(),this.$route.query.pn!=this.partNumber&&i["a"].push({path:"/searchPn",query:{pn:this.partNumber}}),fetch(s["a"].getServerAddress()+"/searchPn?pn="+this.partNumber).then((function(t){return t.json()})).then((function(e){for(var a in t.pns=[],e.data){var n=String(e.data[a]).split(" ");t.pns.push({vendor:t.$t("vendors."+n[0]),pn:n[1]})}})).catch((function(e){t.snackbar={timeout:3e3,show:!0,text:t.$t("alert.fetchFailed",[e])}}))):this.snackbar={timeout:3e3,show:!0,text:this.$t("alert.missingPartNumber")}},copyFlashId:function(t){var e=this;this.$copyText(t.pn).then((function(t){e.snackbar={timeout:3e3,show:!0,text:e.$t("copySucc")}}),(function(t){e.snackbar={timeout:3e3,show:!0,text:e.$t("copyFail",[t])}}))},decodeFlashId:function(t){i["a"].push({path:"/decode",query:{pn:t.pn}})}},created:function(){Object.keys(this.$route.query).includes("pn")&&(this.partNumber=this.$route.query.pn,this.search())}},o=c,u=a("2877"),l=a("6544"),d=a.n(l),p=a("40dc"),h=a("8336"),b=a("b0af"),f=a("99d9"),v=a("a523"),m=a("8fea"),k=a("ce7e"),x=a("0e8f"),y=a("132d"),w=a("2db4"),N=a("8654"),$=Object(u["a"])(o,n,r,!1,null,null,null);e["default"]=$.exports;d()($,{VAppBar:p["a"],VBtn:h["a"],VCard:b["a"],VCardText:f["b"],VContainer:v["a"],VDataTable:m["a"],VDivider:k["a"],VFlex:x["a"],VIcon:y["a"],VSnackbar:w["a"],VTextField:N["a"]})}}]); \ No newline at end of file diff --git a/app/src/main/assets/js/chunk-2d0c87cd.2a4166a6.js b/app/src/main/assets/js/chunk-2d0c87cd.2a4166a6.js deleted file mode 100644 index d5f5c72..0000000 --- a/app/src/main/assets/js/chunk-2d0c87cd.2a4166a6.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c87cd"],{"54a9":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("v-container",{attrs:{"grid-list-xl":"",fluid:""}},[a("v-flex",{attrs:{lg12:""}},[a("v-card",[a("v-app-bar",{attrs:{flat:"",dense:"",color:"transparent"}},[a("v-text-field",{staticClass:"pn",attrs:{flat:"",solo:"","prepend-icon":"mdi-magnify",placeholder:t.$t("partNumber"),"hide-details":""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.partNumber,callback:function(e){t.partNumber=e},expression:"partNumber"}}),a("v-btn",{attrs:{icon:""},on:{click:t.search}},[a("v-icon",[t._v("mdi-arrow-right")])],1)],1),a("v-divider"),a("v-card-text",[a("v-data-table",{staticClass:"elevation-1",attrs:{headers:t.pnHeaders,items:t.pns,"disable-sort":"","no-data-text":"","hide-default-footer":"","items-per-page":t.itemsPerPage,"mobile-breakpoint":NaN},scopedSlots:t._u([{key:"item.action",fn:function(e){var n=e.item;return[a("v-btn",{attrs:{icon:""},on:{click:function(e){return t.decodeFlashId(n)}}},[a("v-icon",[t._v("mdi-arrow-top-left-thick")])],1),a("v-btn",{attrs:{icon:""},on:{click:function(e){return t.copyFlashId(n)}}},[a("v-icon",[t._v("mdi-content-copy")])],1)]}}])})],1)],1)],1)],1),a("v-snackbar",{attrs:{timeout:t.snackbar.timeout},model:{value:t.snackbar.show,callback:function(e){t.$set(t.snackbar,"show",e)},expression:"snackbar.show"}},[t._v(" "+t._s(t.snackbar.text)+" "),a("v-btn",{attrs:{text:"",color:"blue"},on:{click:function(e){t.snackbar.show=!1}}},[t._v(t._s(t.$t("close")))])],1)],1)},r=[],s=(a("caad"),a("b64b"),a("d3b7"),a("ac1f"),a("2532"),a("841c"),a("1276"),a("4360")),i=a("a18c"),c={data:function(){return{itemsPerPage:1e4,snackbar:{timeout:1e3,show:!1,text:""},partNumber:"",pns:[]}},computed:{pnHeaders:function(){return[{text:this.$t("vendor"),value:"vendor",align:"left"},{text:this.$t("partNumber"),value:"pn",align:"left"},{text:this.$t("action"),value:"action"}]}},methods:{search:function(){var t=this;""!=this.partNumber?(this.partNumber=this.partNumber.toUpperCase(),this.$route.query.pn!=this.partNumber&&i["a"].push({path:"/searchPn",query:{pn:this.partNumber}}),fetch(s["a"].getServerAddress()+"/searchPn?pn="+this.partNumber).then((function(t){return t.json()})).then((function(e){for(var a in t.pns=[],e.data){var n=String(e.data[a]).split(" ");t.pns.push({vendor:t.$t("vendors."+n[0]),pn:n[1]})}})).catch((function(e){t.snackbar={timeout:3e3,show:!0,text:t.$t("alert.fetchFailed",[e])}}))):this.snackbar={timeout:3e3,show:!0,text:this.$t("alert.missingPartNumber")}},copyFlashId:function(t){var e=this;this.$copyText(t.pn).then((function(t){e.snackbar={timeout:3e3,show:!0,text:e.$t("copySucc")}}),(function(t){e.snackbar={timeout:3e3,show:!0,text:e.$t("copyFail",[t])}}))},decodeFlashId:function(t){i["a"].push({path:"/decode",query:{pn:t.pn}})}},created:function(){Object.keys(this.$route.query).includes("pn")&&(this.partNumber=this.$route.query.pn,this.search())}},o=c,u=a("2877"),d=a("6544"),l=a.n(d),p=a("40dc"),h=a("8336"),b=a("b0af"),f=a("99d9"),v=a("a523"),m=a("8fea"),k=a("ce7e"),x=a("0e8f"),y=a("132d"),w=a("2db4"),N=a("8654"),$=Object(u["a"])(o,n,r,!1,null,null,null);e["default"]=$.exports;l()($,{VAppBar:p["a"],VBtn:h["a"],VCard:b["a"],VCardText:f["b"],VContainer:v["a"],VDataTable:m["a"],VDivider:k["a"],VFlex:x["a"],VIcon:y["a"],VSnackbar:w["a"],VTextField:N["a"]})}}]); \ No newline at end of file diff --git a/app/src/main/assets/js/chunk-2d225f66.1636d334.js b/app/src/main/assets/js/chunk-2d225f66.1636d334.js deleted file mode 100644 index 80e022d..0000000 --- a/app/src/main/assets/js/chunk-2d225f66.1636d334.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d225f66"],{e742:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("v-container",{attrs:{"grid-list-xl":"",fluid:""}},[a("v-flex",{attrs:{lg12:""}},[a("v-card",[a("v-app-bar",{attrs:{flat:"",dense:"",color:"transparent"}},[a("v-text-field",{staticClass:"pn",attrs:{flat:"",solo:"","prepend-icon":"mdi-magnify",placeholder:t.$t("flashId"),"hide-details":""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.id,callback:function(e){t.id=e},expression:"id"}}),a("v-btn",{attrs:{icon:""},on:{click:t.search}},[a("v-icon",[t._v("mdi-arrow-right")])],1)],1),a("v-divider"),a("v-card-text",[a("v-data-table",{staticClass:"elevation-1",attrs:{headers:t.idHeaders,items:t.ids,"disable-sort":"","no-data-text":"","hide-default-footer":"","mobile-breakpoint":NaN,"items-per-page":t.itemsPerPage},scopedSlots:t._u([{key:"item.action",fn:function(e){var i=e.item;return[a("v-menu",{attrs:{"offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on;return[a("v-btn",t._g({attrs:{icon:""}},i),[a("v-icon",[t._v("mdi-animation")])],1)]}}],null,!0)},[a("v-list",t._l(i.rawPns,(function(e,i){return a("v-list-item",{key:i,on:{click:function(a){return t.list(e)}}},[a("v-list-item-action",{staticClass:"mx-0"},[t._v(t._s(e))])],1)})),1)],1)]}}])})],1)],1)],1)],1),a("v-snackbar",{attrs:{timeout:t.snackbar.timeout},model:{value:t.snackbar.show,callback:function(e){t.$set(t.snackbar,"show",e)},expression:"snackbar.show"}},[t._v(" "+t._s(t.snackbar.text)+" "),a("v-btn",{attrs:{text:"",color:"blue"},on:{click:function(e){t.snackbar.show=!1}}},[t._v(t._s(t.$t("close")))])],1)],1)},n=[],s=(a("caad"),a("b64b"),a("d3b7"),a("ac1f"),a("2532"),a("841c"),a("1276"),a("4360")),r=a("a18c"),o={data:function(){return{itemsPerPage:1e4,snackbar:{timeout:1e3,show:!1,text:""},id:"",ids:[],tids:[]}},computed:{idHeaders:function(){return[{text:this.$t("flashId"),value:"id",align:"left"},{text:this.$t("partNumber"),value:"pns",align:"left"},{text:this.$t("action"),value:"action"},{text:this.$t("controllers"),value:"cons",aligh:"left"}]}},methods:{search:function(){var t=this;""!=this.id?(this.id=this.id.toUpperCase(),this.$route.query.id!=this.id&&r["a"].push({path:"/searchId",query:{id:this.id}}),fetch(s["a"].getServerAddress()+"/searchId?id="+this.id).then((function(t){return t.json()})).then((function(e){for(var a in t.tids=[],e.data){var i="",n=[];for(var r in e.data[a])i+=String(e.data[a][r]).split(" ")[1]+", ",n.push(String(e.data[a][r]).split(" ")[1]);i=i.substring(0,i.length-2),t.tids.push({id:a,pns:i,rawPns:n})}fetch(s["a"].getServerAddress()+"/searchController?id="+t.id).then((function(t){return t.json()})).then((function(e){var a=0;for(var i in e.data){var n="";for(var s in e.data[i])n+=String(e.data[i][s])+", ";n=n.substring(0,n.length-2),t.tids[a].cons=n,a++}t.ids=t.tids}))})).catch((function(e){t.snackbar={timeout:3e3,show:!0,text:t.$t("alert.fetchFailed",[e])}}))):this.snackbar={timeout:3e3,show:!0,text:this.$t("alert.missingFlashId")}},list:function(t){r["a"].push({path:"/decode",query:{pn:t}})}},created:function(){Object.keys(this.$route.query).includes("id")&&(this.id=this.$route.query.id,this.search())}},d=o,c=a("2877"),l=a("6544"),u=a.n(l),h=a("40dc"),f=a("8336"),v=a("b0af"),p=a("99d9"),b=a("a523"),m=a("8fea"),k=a("ce7e"),x=a("0e8f"),g=a("132d"),w=a("8860"),y=a("da13"),V=a("1800"),_=a("e449"),$=a("2db4"),C=a("8654"),I=Object(c["a"])(d,i,n,!1,null,null,null);e["default"]=I.exports;u()(I,{VAppBar:h["a"],VBtn:f["a"],VCard:v["a"],VCardText:p["b"],VContainer:b["a"],VDataTable:m["a"],VDivider:k["a"],VFlex:x["a"],VIcon:g["a"],VList:w["a"],VListItem:y["a"],VListItemAction:V["a"],VMenu:_["a"],VSnackbar:$["a"],VTextField:C["a"]})}}]); \ No newline at end of file diff --git a/app/src/main/assets/js/chunk-2d225f66.df3aa277.js b/app/src/main/assets/js/chunk-2d225f66.df3aa277.js new file mode 100644 index 0000000..3c8fa36 --- /dev/null +++ b/app/src/main/assets/js/chunk-2d225f66.df3aa277.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d225f66"],{e742:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("v-container",{attrs:{"grid-list-xl":"",fluid:""}},[a("v-flex",{attrs:{lg12:""}},[a("v-card",[a("v-app-bar",{attrs:{flat:"",dense:"",color:"transparent"}},[a("v-text-field",{staticClass:"pn",attrs:{flat:"",solo:"",clearable:"","prepend-icon":"mdi-magnify",placeholder:t.$t("flashId"),"hide-details":""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.id,callback:function(e){t.id=e},expression:"id"}}),a("v-btn",{attrs:{icon:""},on:{click:t.search}},[a("v-icon",[t._v("mdi-arrow-right")])],1)],1),a("v-divider"),a("v-card-text",[a("v-data-table",{staticClass:"elevation-1",attrs:{headers:t.idHeaders,items:t.ids,"disable-sort":"","no-data-text":"","hide-default-footer":"","mobile-breakpoint":NaN,"items-per-page":t.itemsPerPage},scopedSlots:t._u([{key:"item.action",fn:function(e){var i=e.item;return[a("v-menu",{attrs:{"offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on;return[a("v-btn",t._g({attrs:{icon:""}},i),[a("v-icon",[t._v("mdi-animation")])],1)]}}],null,!0)},[a("v-list",t._l(i.rawPns,(function(e,i){return a("v-list-item",{key:i,on:{click:function(a){return t.list(e)}}},[a("v-list-item-action",{staticClass:"mx-0"},[t._v(t._s(e))])],1)})),1)],1)]}}])})],1)],1)],1)],1),a("v-snackbar",{attrs:{timeout:t.snackbar.timeout},model:{value:t.snackbar.show,callback:function(e){t.$set(t.snackbar,"show",e)},expression:"snackbar.show"}},[t._v(" "+t._s(t.snackbar.text)+" "),a("v-btn",{attrs:{text:"",color:"blue"},on:{click:function(e){t.snackbar.show=!1}}},[t._v(t._s(t.$t("close")))])],1)],1)},n=[],s=(a("caad"),a("b64b"),a("d3b7"),a("ac1f"),a("2532"),a("841c"),a("1276"),a("4360")),r=a("a18c"),o={data:function(){return{itemsPerPage:1e4,snackbar:{timeout:1e3,show:!1,text:""},id:"",ids:[],tids:[]}},computed:{idHeaders:function(){return[{text:this.$t("flashId"),value:"id",align:"left"},{text:this.$t("partNumber"),value:"pns",align:"left"},{text:this.$t("action"),value:"action"},{text:this.$t("controllers"),value:"cons",aligh:"left"}]}},methods:{search:function(){var t=this;""!=this.id?(this.id=this.id.toUpperCase(),this.$route.query.id!=this.id&&r["a"].push({path:"/searchId",query:{id:this.id}}),fetch(s["a"].getServerAddress()+"/searchId?id="+this.id).then((function(t){return t.json()})).then((function(e){for(var a in t.tids=[],e.data){var i="",n=[];for(var r in e.data[a])i+=String(e.data[a][r]).split(" ")[1]+", ",n.push(String(e.data[a][r]).split(" ")[1]);i=i.substring(0,i.length-2),t.tids.push({id:a,pns:i,rawPns:n})}fetch(s["a"].getServerAddress()+"/searchController?id="+t.id).then((function(t){return t.json()})).then((function(e){var a=0;for(var i in e.data){var n="";for(var s in e.data[i])n+=String(e.data[i][s])+", ";n=n.substring(0,n.length-2),t.tids[a].cons=n,a++}t.ids=t.tids}))})).catch((function(e){t.snackbar={timeout:3e3,show:!0,text:t.$t("alert.fetchFailed",[e])}}))):this.snackbar={timeout:3e3,show:!0,text:this.$t("alert.missingFlashId")}},list:function(t){r["a"].push({path:"/decode",query:{pn:t}})}},created:function(){Object.keys(this.$route.query).includes("id")&&(this.id=this.$route.query.id,this.search())}},c=o,d=a("2877"),l=a("6544"),u=a.n(l),h=a("40dc"),f=a("8336"),v=a("b0af"),p=a("99d9"),b=a("a523"),m=a("8fea"),k=a("ce7e"),x=a("0e8f"),g=a("132d"),w=a("8860"),y=a("da13"),V=a("1800"),_=a("e449"),$=a("2db4"),C=a("8654"),I=Object(d["a"])(c,i,n,!1,null,null,null);e["default"]=I.exports;u()(I,{VAppBar:h["a"],VBtn:f["a"],VCard:v["a"],VCardText:p["b"],VContainer:b["a"],VDataTable:m["a"],VDivider:k["a"],VFlex:x["a"],VIcon:g["a"],VList:w["a"],VListItem:y["a"],VListItemAction:V["a"],VMenu:_["a"],VSnackbar:$["a"],VTextField:C["a"]})}}]); \ No newline at end of file diff --git a/app/src/main/assets/js/chunk-373ae168.8582ca61.js b/app/src/main/assets/js/chunk-373ae168.8582ca61.js deleted file mode 100644 index 670db92..0000000 --- a/app/src/main/assets/js/chunk-373ae168.8582ca61.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-373ae168"],{"0331":function(t,e,n){t.exports=n.p+"img/micron.86d3213f.svg"},1681:function(t,e,n){},"28a0":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},"2a1a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("v-container",{attrs:{"grid-list-xl":"",fluid:""}},[n("v-layout",{attrs:{row:"",wrap:""}},[n("v-flex",{attrs:{lg3:"",sm12:"",xs12:""}},[n("v-card",[n("v-card-title",[t._v(t._s(t.$t("partNumberOrFlashId")))]),n("v-card-text",[n("v-text-field",{staticClass:"pn",attrs:{required:""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.query(e)}},model:{value:t.partNumber,callback:function(e){t.partNumber=e},expression:"partNumber"}})],1),n("v-card-actions",[n("v-btn",{attrs:{text:""},on:{click:t.query}},[t._v(t._s(t.$t("query")))]),n("v-btn",{attrs:{text:""},on:{click:t.search}},[t._v(t._s(t.$t("search")))]),n("v-btn",{attrs:{text:""},on:{click:t.searchId}},[t._v(t._s(t.$t("searchId")))])],1)],1)],1),n("v-flex",{attrs:{lg3:"",sm12:"",xs12:""}},[n("v-card",[n("v-card-title",[t._v(t._s(t.$t("vendor")))]),n("v-card-text",[n("v-img",{attrs:{src:t.vendorLogo}}),n("v-text-field",{attrs:{required:""},model:{value:t.vendor,callback:function(e){t.vendor=e},expression:"vendor"}},[t._v("美光")])],1)],1)],1),n("v-flex",{attrs:{lg2:"",sm12:"",xs12:""}},[n("v-card",[n("v-card-text",[n("v-text-field",{attrs:{required:"",label:t.$t("type")},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}}),n("v-text-field",{attrs:{required:"",label:t.$t("density")},model:{value:t.density,callback:function(e){t.density=e},expression:"density"}}),n("v-text-field",{attrs:{required:"",label:t.$t("deviceWidth")},model:{value:t.deviceWidth,callback:function(e){t.deviceWidth=e},expression:"deviceWidth"}}),n("v-text-field",{attrs:{required:"",label:t.$t("cellLevel")},model:{value:t.cellLevel,callback:function(e){t.cellLevel=e},expression:"cellLevel"}})],1)],1)],1),n("v-flex",{attrs:{lg2:"",sm12:"",xs12:""}},[n("v-card",[n("v-card-text",[n("v-text-field",{attrs:{required:"",label:t.$t("processNode")},model:{value:t.processNode,callback:function(e){t.processNode=e},expression:"processNode"}}),n("v-text-field",{attrs:{required:"",label:t.$t("generation")},model:{value:t.generation,callback:function(e){t.generation=e},expression:"generation"}}),n("v-checkbox",{attrs:{disabled:"",label:t.$t("sync")},model:{value:t.sync,callback:function(e){t.sync=e},expression:"sync"}}),n("v-checkbox",{attrs:{disabled:"",label:t.$t("async")},model:{value:t.async,callback:function(e){t.async=e},expression:"async"}})],1)],1)],1),n("v-flex",{attrs:{lg2:"",sm12:"",xs12:""}},[n("v-card",[n("v-card-text",[n("v-text-field",{attrs:{required:"",label:t.$t("ce")},model:{value:t.ce,callback:function(e){t.ce=e},expression:"ce"}}),n("v-text-field",{attrs:{required:"",label:t.$t("ch")},model:{value:t.ch,callback:function(e){t.ch=e},expression:"ch"}}),n("v-text-field",{attrs:{required:"",label:t.$t("die")},model:{value:t.die,callback:function(e){t.die=e},expression:"die"}}),n("v-text-field",{attrs:{required:"",label:t.$t("rb")},model:{value:t.rb,callback:function(e){t.rb=e},expression:"rb"}})],1)],1)],1),n("v-flex",{attrs:{lg5:"",sm12:"",xs12:""}},[n("v-card",[n("v-card-text",[n("v-text-field",{attrs:{required:"",label:t.$t("voltage")},model:{value:t.voltage,callback:function(e){t.voltage=e},expression:"voltage"}}),n("v-text-field",{attrs:{required:"",label:t.$t("package")},model:{value:t.pkg,callback:function(e){t.pkg=e},expression:"pkg"}}),n("v-textarea",{attrs:{"auto-grow":"",rows:"1",label:t.$t("controllers")},model:{value:t.controllers,callback:function(e){t.controllers=e},expression:"controllers"}}),n("v-text-field",{attrs:{required:"",label:t.$t("comment")},model:{value:t.comment,callback:function(e){t.comment=e},expression:"comment"}})],1)],1)],1),n("v-flex",{attrs:{lg4:"",sm12:"",xs12:""}},[n("v-card",[n("v-app-bar",{attrs:{flat:"",dense:"",color:"transparent"}},[n("v-toolbar-title",[t._v(t._s(t.$t("extraInfo")))]),n("v-spacer"),n("v-btn",{attrs:{icon:""},on:{click:t.copyAll}},[n("v-icon",[t._v("mdi-content-copy")])],1)],1),n("v-card-text",[n("v-data-table",{staticClass:"elevation-1",attrs:{headers:t.extraInfoHeaders,items:t.extraInfo,"hide-default-footer":"","disable-sort":"","no-data-text":"","mobile-breakpoint":NaN,"items-per-page":t.itemsPerPage},scopedSlots:t._u([{key:"item.copy",fn:function(e){var r=e.item;return[n("v-btn",{attrs:{icon:""},on:{click:function(e){return t.copy(r)}}},[n("v-icon",[t._v("mdi-content-copy")])],1)]}}])})],1)],1)],1),n("v-flex",{attrs:{lg3:"",sm12:"",xs12:""}},[n("v-card",[n("v-app-bar",{attrs:{flat:"",dense:"",color:"transparent"}},[n("v-toolbar-title",[t._v(t._s(t.$t("flashIds")))]),n("v-spacer"),n("v-btn",{attrs:{icon:""},on:{click:t.copyAllFlashIds}},[n("v-icon",[t._v("mdi-content-copy")])],1)],1),n("v-card-text",[n("v-data-table",{staticClass:"elevation-1",attrs:{headers:t.flashIdHeaders,items:t.flashIds,"hide-default-footer":"","disable-sort":"","no-data-text":"","mobile-breakpoint":NaN,"items-per-page":t.itemsPerPage},scopedSlots:t._u([{key:"item.action",fn:function(e){var r=e.item;return[n("v-btn",{attrs:{icon:""},on:{click:function(e){return t.searchFlashId(r)}}},[n("v-icon",[t._v("mdi-magnify")])],1),n("v-btn",{attrs:{icon:""},on:{click:function(e){return t.copyFlashId(r)}}},[n("v-icon",[t._v("mdi-content-copy")])],1)]}}])})],1)],1)],1)],1)],1),n("v-snackbar",{attrs:{timeout:t.snackbar.timeout},model:{value:t.snackbar.show,callback:function(e){t.$set(t.snackbar,"show",e)},expression:"snackbar.show"}},[t._v(" "+t._s(t.snackbar.text)+" "),n("v-btn",{attrs:{text:"",color:"blue"},on:{click:function(e){t.snackbar.show=!1}}},[t._v(t._s(t.$t("close")))])],1)],1)},i=[],o=(n("caad"),n("b0c0"),n("b64b"),n("d3b7"),n("ac1f"),n("2532"),n("5319"),n("4360")),a=n("a18c"),s=n("3022"),c={data:function(){return{itemsPerPage:1e4,snackbar:{timeout:1e3,show:!1,text:""},vendorLogo:"",partNumber:"",vendor:"",type:"",density:"",deviceWidth:"",cellLevel:"",processNode:"",generation:"",sync:!1,async:!1,ce:"",ch:"",die:"",rb:"",voltage:"",pkg:"",comment:"",rawVendor:"",controllers:"",extraInfo:[],flashIds:[]}},computed:{extraInfoHeaders:function(){return[{text:this.$t("name"),value:"name",align:"left"},{text:this.$t("value"),value:"value"},{text:this.$t("copy"),value:"copy"}]},flashIdHeaders:function(){return[{text:this.$t("flashIds"),value:"id",align:"left"},{text:this.$t("action"),value:"action"}]}},methods:{query:function(){var t=this;""!=this.partNumber?(this.partNumber=this.partNumber.toUpperCase(),this.$route.query.pn!=this.partNumber&&a["a"].push({path:"/decode",query:{pn:this.partNumber}}),fetch(o["a"].getServerAddress()+"/decode?trans="+o["a"].autoTranslation()+"&pn="+this.partNumber).then((function(t){return t.json()})).then((function(e){if(e=e.data,t.vendor=e.vendor,t.type=e.type,t.density=e.density,t.deviceWidth=e.deviceWidth,t.cellLevel=e.cellLevel,t.processNode=e.processNode,t.generation=e.generation,t.voltage=e.voltage,t.pkg=e.package,t.rawVendor=e.rawVendor,t.vendorLogo=t.getVendorLogo(),t.comment=e.comment,t.controllers=String(e.controller).replace(/,/g,", "),null==e.interface?(t.sync=!1,t.async=!1):Object.keys(e.interface).includes("toggle")?(t.sync=e.interface.toggle,t.async=!0):(t.sync=e.interface.sync,t.async=e.interface.async),null!=e.classification&&(t.ce=t.isUnknown(e.classification.ce),t.ch=t.isUnknown(e.classification.ch),t.die=t.isUnknown(e.classification.die),t.rb=t.isUnknown(e.classification.rnb)),t.extraInfo=[],null!=e.extraInfo&&!Object(s["isString"])(e.extraInfo))for(var n in e.extraInfo)t.extraInfo.push({name:n,value:e.extraInfo[n]});if(t.flashIds=[],null!=e.flashId&&!Object(s["isString"])(e.flashId))for(var r in e.flashId)t.flashIds.push({id:e.flashId[r]})})).catch((function(e){t.snackbar={timeout:3e3,show:!0,text:t.$t("alert.fetchFailed",[e])}}))):this.snackbar={timeout:3e3,show:!0,text:this.$t("alert.missingPartNumber")}},isUnknown:function(t){return-2==t?2:-1==t?this.$t("unknown"):t},getVendorLogo:function(){switch(this.rawVendor){case"intel":return n("d777");case"micron":return n("0331");case"samsung":return n("e1d9");case"skhynix":return n("2f60");case"spectek":return n("ce47");case"westerndigital":return n("7d2f");case"kioxia":return n("b1af");default:return""}},copy:function(t){this.c(t.name+": "+t.value)},copyAll:function(){var t="";for(var e in this.extraInfo)e=this.extraInfo[e],t+=e.name+": "+e.value+", ";this.c(t.substring(0,t.length-2))},c:function(t){var e=this;this.$copyText(t).then((function(t){e.snackbar={timeout:3e3,show:!0,text:e.$t("copySucc")}}),(function(t){e.snackbar={timeout:3e3,show:!0,text:e.$t("copyFail",[t])}}))},copyAllFlashIds:function(){var t="";for(var e in this.flashIds)e=this.flashIds[e],t+=e.id+", ";this.c(t.substring(0,t.length-2))},copyFlashId:function(t){this.c(t.id)},search:function(){""!=this.partNumber?a["a"].push({path:"/searchPn",query:{pn:this.partNumber}}):this.snackbar={timeout:3e3,show:!0,text:this.$t("alert.missingPartNumber")}},searchId:function(){""!=this.partNumber?a["a"].push({path:"/searchId",query:{id:this.partNumber}}):this.snackbar={timeout:3e3,show:!0,text:this.$t("alert.missingFlashId")}},searchFlashId:function(t){a["a"].push({path:"/searchId",query:{id:t.id}})}},created:function(){Object.keys(this.$route.query).includes("pn")&&(this.partNumber=this.$route.query.pn,this.query())}},l=c,u=n("2877"),A=n("6544"),f=n.n(A),p=n("40dc"),h=n("8336"),d=n("b0af"),g=n("99d9"),v=n("ac7c"),b=n("a523"),y=n("8fea"),m=n("0e8f"),x=n("132d"),w=n("adda"),I=n("a722"),k=n("2db4"),C=n("2fa4"),B=n("8654"),O=(n("a4d3"),n("4de4"),n("4160"),n("a9e3"),n("e439"),n("dbb4"),n("acd8"),n("e25e"),n("159b"),n("2fa7")),E=(n("1681"),n("58df"));function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}})),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),b(n)?r.showHidden=n:n&&e._extend(r,n),k(r.showHidden)&&(r.showHidden=!1),k(r.depth)&&(r.depth=2),k(r.colors)&&(r.colors=!1),k(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),A(r,t,r.depth)}function c(t,e){var n=s.styles[e];return n?"["+s.colors[n][0]+"m"+t+"["+s.colors[n][1]+"m":t}function l(t,e){return t}function u(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}function A(t,n,r){if(t.customInspect&&n&&D(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return w(i)||(i=A(t,i,r)),i}var o=f(t,n);if(o)return o;var a=Object.keys(n),s=u(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),E(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(D(n)){var c=n.name?": "+n.name:"";return t.stylize("[Function"+c+"]","special")}if(C(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return t.stylize(Date.prototype.toString.call(n),"date");if(E(n))return p(n)}var l,b="",y=!1,m=["{","}"];if(v(n)&&(y=!0,m=["[","]"]),D(n)){var x=n.name?": "+n.name:"";b=" [Function"+x+"]"}return C(n)&&(b=" "+RegExp.prototype.toString.call(n)),O(n)&&(b=" "+Date.prototype.toUTCString.call(n)),E(n)&&(b=" "+p(n)),0!==a.length||y&&0!=n.length?r<0?C(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),l=y?h(t,n,r,s,a):a.map((function(e){return d(t,n,r,s,e,y)})),t.seen.pop(),g(l,b,m)):m[0]+b+m[1]}function f(t,e){if(k(e))return t.stylize("undefined","undefined");if(w(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return x(e)?t.stylize(""+e,"number"):b(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,i){for(var o=[],a=0,s=e.length;a-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n"))):s=t.stylize("[Circular]","special")),k(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function g(t,e,n){var r=t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function v(t){return Array.isArray(t)}function b(t){return"boolean"===typeof t}function y(t){return null===t}function m(t){return null==t}function x(t){return"number"===typeof t}function w(t){return"string"===typeof t}function I(t){return"symbol"===typeof t}function k(t){return void 0===t}function C(t){return B(t)&&"[object RegExp]"===S(t)}function B(t){return"object"===typeof t&&null!==t}function O(t){return B(t)&&"[object Date]"===S(t)}function E(t){return B(t)&&("[object Error]"===S(t)||t instanceof Error)}function D(t){return"function"===typeof t}function j(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function S(t){return Object.prototype.toString.call(t)}function Q(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(k(o)&&(o=Object({NODE_ENV:"production",BASE_URL:""}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=t.pid;a[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else a[n]=function(){};return a[n]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=v,e.isBoolean=b,e.isNull=y,e.isNullOrUndefined=m,e.isNumber=x,e.isString=w,e.isSymbol=I,e.isUndefined=k,e.isRegExp=C,e.isObject=B,e.isDate=O,e.isError=E,e.isFunction=D,e.isPrimitive=j,e.isBuffer=n("d60a");var V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var t=new Date,e=[Q(t.getHours()),Q(t.getMinutes()),Q(t.getSeconds())].join(":");return[t.getDate(),V[t.getMonth()],e].join(" ")}function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",F(),e.format.apply(e,arguments))},e.inherits=n("28a0"),e._extend=function(t,e){if(!e||!B(e))return t;var n=Object.keys(e),r=n.length;while(r--)t[n[r]]=e[n[r]];return t};var T="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}function R(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),t.on=Object.assign({click:this.onChange},this.$listeners),this.$createElement("div",t)):null},onChange:function(){}}}),l=n("8547"),u=n("58df"),A=Object(u["a"])(o["a"],c,l["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data:function(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor:function(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"accent"},isMultiple:function(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive:function(){var t=this,e=this.value,n=this.internalValue;return this.isMultiple?!!Array.isArray(n)&&n.some((function(n){return t.valueComparator(n,e)})):void 0===this.trueValue||void 0===this.falseValue?e?this.valueComparator(e,n):Boolean(n):this.valueComparator(n,this.trueValue)},isDirty:function(){return this.isActive}},watch:{inputValue:function(t){this.lazyValue=t,this.hasColor=t}},methods:{genLabel:function(){var t=this,e=o["a"].options.methods.genLabel.call(this);return e?(e.data.on={click:function(e){e.preventDefault(),t.onChange()}},e):e},genInput:function(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown},ref:"input"})},onBlur:function(){this.isFocused=!1},onChange:function(){var t=this;if(!this.isDisabled){var e=this.value,n=this.internalValue;if(this.isMultiple){Array.isArray(n)||(n=[]);var r=n.length;n=n.filter((function(n){return!t.valueComparator(n,e)})),n.length===r&&n.push(e)}else n=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(n,this.trueValue)?this.falseValue:this.trueValue:e?this.valueComparator(n,e)?null:e:!n;this.validate(!0,n),this.internalValue=n,this.hasColor=n}},onFocus:function(){this.isFocused=!0},onKeydown:function(t){}}});function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,r="/"===a.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),a="/"===o(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&a&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e1d9:function(t,e,n){t.exports=n.p+"img/samsung.292327fe.svg"},ec29:function(t,e,n){}}]); \ No newline at end of file diff --git a/app/src/main/assets/js/chunk-373ae168.a15fffc7.js b/app/src/main/assets/js/chunk-373ae168.a15fffc7.js new file mode 100644 index 0000000..0914425 --- /dev/null +++ b/app/src/main/assets/js/chunk-373ae168.a15fffc7.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-373ae168"],{"0331":function(t,e,n){t.exports=n.p+"img/micron.86d3213f.svg"},1681:function(t,e,n){},"28a0":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},"2a1a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("v-container",{attrs:{"grid-list-xl":"",fluid:""}},[n("v-layout",{attrs:{row:"",wrap:""}},[n("v-flex",{attrs:{lg3:"",sm12:"",xs12:""}},[n("v-card",[n("v-card-title",[t._v(t._s(t.$t("partNumberOrFlashId")))]),n("v-card-text",[n("v-text-field",{staticClass:"pn",attrs:{clearable:""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.query(e)}},model:{value:t.partNumber,callback:function(e){t.partNumber=e},expression:"partNumber"}})],1),n("v-card-actions",[n("v-btn",{attrs:{text:""},on:{click:t.query}},[t._v(t._s(t.$t("query")))]),n("v-btn",{attrs:{text:""},on:{click:t.search}},[t._v(t._s(t.$t("search")))]),n("v-btn",{attrs:{text:""},on:{click:t.searchId}},[t._v(t._s(t.$t("searchId")))])],1)],1)],1),n("v-flex",{attrs:{lg3:"",sm12:"",xs12:""}},[n("v-card",[n("v-card-title",[t._v(t._s(t.$t("vendor")))]),n("v-card-text",[n("v-img",{attrs:{src:t.vendorLogo}}),n("v-text-field",{model:{value:t.vendor,callback:function(e){t.vendor=e},expression:"vendor"}},[t._v("美光")])],1)],1)],1),n("v-flex",{attrs:{lg2:"",sm12:"",xs12:""}},[n("v-card",[n("v-card-text",[n("v-text-field",{attrs:{label:t.$t("type")},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}}),n("v-text-field",{attrs:{label:t.$t("density")},model:{value:t.density,callback:function(e){t.density=e},expression:"density"}}),n("v-text-field",{attrs:{label:t.$t("deviceWidth")},model:{value:t.deviceWidth,callback:function(e){t.deviceWidth=e},expression:"deviceWidth"}}),n("v-text-field",{attrs:{label:t.$t("cellLevel")},model:{value:t.cellLevel,callback:function(e){t.cellLevel=e},expression:"cellLevel"}})],1)],1)],1),n("v-flex",{attrs:{lg2:"",sm12:"",xs12:""}},[n("v-card",[n("v-card-text",[n("v-text-field",{attrs:{label:t.$t("processNode")},model:{value:t.processNode,callback:function(e){t.processNode=e},expression:"processNode"}}),n("v-text-field",{attrs:{label:t.$t("generation")},model:{value:t.generation,callback:function(e){t.generation=e},expression:"generation"}}),n("v-checkbox",{attrs:{disabled:"",label:t.$t("sync")},model:{value:t.sync,callback:function(e){t.sync=e},expression:"sync"}}),n("v-checkbox",{attrs:{disabled:"",label:t.$t("async")},model:{value:t.async,callback:function(e){t.async=e},expression:"async"}})],1)],1)],1),n("v-flex",{attrs:{lg2:"",sm12:"",xs12:""}},[n("v-card",[n("v-card-text",[n("v-text-field",{attrs:{label:t.$t("ce")},model:{value:t.ce,callback:function(e){t.ce=e},expression:"ce"}}),n("v-text-field",{attrs:{label:t.$t("ch")},model:{value:t.ch,callback:function(e){t.ch=e},expression:"ch"}}),n("v-text-field",{attrs:{label:t.$t("die")},model:{value:t.die,callback:function(e){t.die=e},expression:"die"}}),n("v-text-field",{attrs:{label:t.$t("rb")},model:{value:t.rb,callback:function(e){t.rb=e},expression:"rb"}})],1)],1)],1),n("v-flex",{attrs:{lg5:"",sm12:"",xs12:""}},[n("v-card",[n("v-card-text",[n("v-text-field",{attrs:{label:t.$t("voltage")},model:{value:t.voltage,callback:function(e){t.voltage=e},expression:"voltage"}}),n("v-text-field",{attrs:{label:t.$t("package")},model:{value:t.pkg,callback:function(e){t.pkg=e},expression:"pkg"}}),n("v-textarea",{attrs:{"auto-grow":"",rows:"1",label:t.$t("controllers")},model:{value:t.controllers,callback:function(e){t.controllers=e},expression:"controllers"}}),n("v-text-field",{attrs:{label:t.$t("comment")},model:{value:t.comment,callback:function(e){t.comment=e},expression:"comment"}})],1)],1)],1),n("v-flex",{attrs:{lg4:"",sm12:"",xs12:""}},[n("v-card",[n("v-app-bar",{attrs:{flat:"",dense:"",color:"transparent"}},[n("v-toolbar-title",[t._v(t._s(t.$t("extraInfo")))]),n("v-spacer"),n("v-btn",{attrs:{icon:""},on:{click:t.copyAll}},[n("v-icon",[t._v("mdi-content-copy")])],1)],1),n("v-card-text",[n("v-data-table",{staticClass:"elevation-1",attrs:{headers:t.extraInfoHeaders,items:t.extraInfo,"hide-default-footer":"","disable-sort":"","no-data-text":"","mobile-breakpoint":NaN,"items-per-page":t.itemsPerPage},scopedSlots:t._u([{key:"item.copy",fn:function(e){var r=e.item;return[n("v-btn",{attrs:{icon:""},on:{click:function(e){return t.copy(r)}}},[n("v-icon",[t._v("mdi-content-copy")])],1)]}}])})],1)],1)],1),n("v-flex",{attrs:{lg3:"",sm12:"",xs12:""}},[n("v-card",[n("v-app-bar",{attrs:{flat:"",dense:"",color:"transparent"}},[n("v-toolbar-title",[t._v(t._s(t.$t("flashIds")))]),n("v-spacer"),n("v-btn",{attrs:{icon:""},on:{click:t.copyAllFlashIds}},[n("v-icon",[t._v("mdi-content-copy")])],1)],1),n("v-card-text",[n("v-data-table",{staticClass:"elevation-1",attrs:{headers:t.flashIdHeaders,items:t.flashIds,"hide-default-footer":"","disable-sort":"","no-data-text":"","mobile-breakpoint":NaN,"items-per-page":t.itemsPerPage},scopedSlots:t._u([{key:"item.action",fn:function(e){var r=e.item;return[n("v-btn",{attrs:{icon:""},on:{click:function(e){return t.searchFlashId(r)}}},[n("v-icon",[t._v("mdi-magnify")])],1),n("v-btn",{attrs:{icon:""},on:{click:function(e){return t.copyFlashId(r)}}},[n("v-icon",[t._v("mdi-content-copy")])],1)]}}])})],1)],1)],1)],1)],1),n("v-snackbar",{attrs:{timeout:t.snackbar.timeout},model:{value:t.snackbar.show,callback:function(e){t.$set(t.snackbar,"show",e)},expression:"snackbar.show"}},[t._v(" "+t._s(t.snackbar.text)+" "),n("v-btn",{attrs:{text:"",color:"blue"},on:{click:function(e){t.snackbar.show=!1}}},[t._v(t._s(t.$t("close")))])],1)],1)},i=[],o=(n("caad"),n("b0c0"),n("b64b"),n("d3b7"),n("ac1f"),n("2532"),n("5319"),n("4360")),a=n("a18c"),s=n("3022"),c={data:function(){return{itemsPerPage:1e4,snackbar:{timeout:1e3,show:!1,text:""},vendorLogo:"",partNumber:"",vendor:"",type:"",density:"",deviceWidth:"",cellLevel:"",processNode:"",generation:"",sync:!1,async:!1,ce:"",ch:"",die:"",rb:"",voltage:"",pkg:"",comment:"",rawVendor:"",controllers:"",extraInfo:[],flashIds:[]}},computed:{extraInfoHeaders:function(){return[{text:this.$t("name"),value:"name",align:"left"},{text:this.$t("value"),value:"value"},{text:this.$t("copy"),value:"copy"}]},flashIdHeaders:function(){return[{text:this.$t("flashIds"),value:"id",align:"left"},{text:this.$t("action"),value:"action"}]}},methods:{query:function(){var t=this;""!=this.partNumber?(this.partNumber=this.partNumber.toUpperCase(),this.$route.query.pn!=this.partNumber&&a["a"].push({path:"/decode",query:{pn:this.partNumber}}),fetch(o["a"].getServerAddress()+"/decode?trans="+o["a"].autoTranslation()+"&pn="+this.partNumber).then((function(t){return t.json()})).then((function(e){if(e=e.data,t.vendor=e.vendor,t.type=e.type,t.density=e.density,t.deviceWidth=e.deviceWidth,t.cellLevel=e.cellLevel,t.processNode=e.processNode,t.generation=e.generation,t.voltage=e.voltage,t.pkg=e.package,t.rawVendor=e.rawVendor,t.vendorLogo=t.getVendorLogo(),t.comment=e.comment,t.controllers=String(e.controller).replace(/,/g,", "),null==e.interface?(t.sync=!1,t.async=!1):Object.keys(e.interface).includes("toggle")?(t.sync=e.interface.toggle,t.async=!0):(t.sync=e.interface.sync,t.async=e.interface.async),null!=e.classification&&(t.ce=t.isUnknown(e.classification.ce),t.ch=t.isUnknown(e.classification.ch),t.die=t.isUnknown(e.classification.die),t.rb=t.isUnknown(e.classification.rnb)),t.extraInfo=[],null!=e.extraInfo&&!Object(s["isString"])(e.extraInfo))for(var n in e.extraInfo)t.extraInfo.push({name:n,value:e.extraInfo[n]});if(t.flashIds=[],null!=e.flashId&&!Object(s["isString"])(e.flashId))for(var r in e.flashId)t.flashIds.push({id:e.flashId[r]})})).catch((function(e){t.snackbar={timeout:3e3,show:!0,text:t.$t("alert.fetchFailed",[e])}}))):this.snackbar={timeout:3e3,show:!0,text:this.$t("alert.missingPartNumber")}},isUnknown:function(t){return-2==t?2:-1==t?this.$t("unknown"):t},getVendorLogo:function(){switch(this.rawVendor){case"intel":return n("d777");case"micron":return n("0331");case"samsung":return n("e1d9");case"skhynix":return n("2f60");case"spectek":return n("ce47");case"westerndigital":return n("7d2f");case"kioxia":return n("b1af");default:return""}},copy:function(t){this.c(t.name+": "+t.value)},copyAll:function(){var t="";for(var e in this.extraInfo)e=this.extraInfo[e],t+=e.name+": "+e.value+", ";this.c(t.substring(0,t.length-2))},c:function(t){var e=this;this.$copyText(t).then((function(t){e.snackbar={timeout:3e3,show:!0,text:e.$t("copySucc")}}),(function(t){e.snackbar={timeout:3e3,show:!0,text:e.$t("copyFail",[t])}}))},copyAllFlashIds:function(){var t="";for(var e in this.flashIds)e=this.flashIds[e],t+=e.id+", ";this.c(t.substring(0,t.length-2))},copyFlashId:function(t){this.c(t.id)},search:function(){""!=this.partNumber?a["a"].push({path:"/searchPn",query:{pn:this.partNumber}}):this.snackbar={timeout:3e3,show:!0,text:this.$t("alert.missingPartNumber")}},searchId:function(){""!=this.partNumber?a["a"].push({path:"/searchId",query:{id:this.partNumber}}):this.snackbar={timeout:3e3,show:!0,text:this.$t("alert.missingFlashId")}},searchFlashId:function(t){a["a"].push({path:"/searchId",query:{id:t.id}})}},created:function(){Object.keys(this.$route.query).includes("pn")&&(this.partNumber=this.$route.query.pn,this.query())}},l=c,u=n("2877"),A=n("6544"),f=n.n(A),p=n("40dc"),h=n("8336"),d=n("b0af"),g=n("99d9"),v=n("ac7c"),b=n("a523"),y=n("8fea"),m=n("0e8f"),x=n("132d"),w=n("adda"),I=n("a722"),k=n("2db4"),C=n("2fa4"),B=n("8654"),O=(n("a4d3"),n("4de4"),n("4160"),n("a9e3"),n("e439"),n("dbb4"),n("acd8"),n("e25e"),n("159b"),n("2fa7")),E=(n("1681"),n("58df"));function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}})),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),b(n)?r.showHidden=n:n&&e._extend(r,n),k(r.showHidden)&&(r.showHidden=!1),k(r.depth)&&(r.depth=2),k(r.colors)&&(r.colors=!1),k(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),A(r,t,r.depth)}function c(t,e){var n=s.styles[e];return n?"["+s.colors[n][0]+"m"+t+"["+s.colors[n][1]+"m":t}function l(t,e){return t}function u(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}function A(t,n,r){if(t.customInspect&&n&&D(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return w(i)||(i=A(t,i,r)),i}var o=f(t,n);if(o)return o;var a=Object.keys(n),s=u(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),E(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(D(n)){var c=n.name?": "+n.name:"";return t.stylize("[Function"+c+"]","special")}if(C(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return t.stylize(Date.prototype.toString.call(n),"date");if(E(n))return p(n)}var l,b="",y=!1,m=["{","}"];if(v(n)&&(y=!0,m=["[","]"]),D(n)){var x=n.name?": "+n.name:"";b=" [Function"+x+"]"}return C(n)&&(b=" "+RegExp.prototype.toString.call(n)),O(n)&&(b=" "+Date.prototype.toUTCString.call(n)),E(n)&&(b=" "+p(n)),0!==a.length||y&&0!=n.length?r<0?C(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),l=y?h(t,n,r,s,a):a.map((function(e){return d(t,n,r,s,e,y)})),t.seen.pop(),g(l,b,m)):m[0]+b+m[1]}function f(t,e){if(k(e))return t.stylize("undefined","undefined");if(w(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return x(e)?t.stylize(""+e,"number"):b(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,i){for(var o=[],a=0,s=e.length;a-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n"))):s=t.stylize("[Circular]","special")),k(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function g(t,e,n){var r=t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function v(t){return Array.isArray(t)}function b(t){return"boolean"===typeof t}function y(t){return null===t}function m(t){return null==t}function x(t){return"number"===typeof t}function w(t){return"string"===typeof t}function I(t){return"symbol"===typeof t}function k(t){return void 0===t}function C(t){return B(t)&&"[object RegExp]"===S(t)}function B(t){return"object"===typeof t&&null!==t}function O(t){return B(t)&&"[object Date]"===S(t)}function E(t){return B(t)&&("[object Error]"===S(t)||t instanceof Error)}function D(t){return"function"===typeof t}function j(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function S(t){return Object.prototype.toString.call(t)}function Q(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(k(o)&&(o=Object({NODE_ENV:"production",BASE_URL:""}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=t.pid;a[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else a[n]=function(){};return a[n]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=v,e.isBoolean=b,e.isNull=y,e.isNullOrUndefined=m,e.isNumber=x,e.isString=w,e.isSymbol=I,e.isUndefined=k,e.isRegExp=C,e.isObject=B,e.isDate=O,e.isError=E,e.isFunction=D,e.isPrimitive=j,e.isBuffer=n("d60a");var V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var t=new Date,e=[Q(t.getHours()),Q(t.getMinutes()),Q(t.getSeconds())].join(":");return[t.getDate(),V[t.getMonth()],e].join(" ")}function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",F(),e.format.apply(e,arguments))},e.inherits=n("28a0"),e._extend=function(t,e){if(!e||!B(e))return t;var n=Object.keys(e),r=n.length;while(r--)t[n[r]]=e[n[r]];return t};var T="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}function R(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),t.on=Object.assign({click:this.onChange},this.$listeners),this.$createElement("div",t)):null},onChange:function(){}}}),l=n("8547"),u=n("58df"),A=Object(u["a"])(o["a"],c,l["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data:function(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor:function(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"accent"},isMultiple:function(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive:function(){var t=this,e=this.value,n=this.internalValue;return this.isMultiple?!!Array.isArray(n)&&n.some((function(n){return t.valueComparator(n,e)})):void 0===this.trueValue||void 0===this.falseValue?e?this.valueComparator(e,n):Boolean(n):this.valueComparator(n,this.trueValue)},isDirty:function(){return this.isActive}},watch:{inputValue:function(t){this.lazyValue=t,this.hasColor=t}},methods:{genLabel:function(){var t=this,e=o["a"].options.methods.genLabel.call(this);return e?(e.data.on={click:function(e){e.preventDefault(),t.onChange()}},e):e},genInput:function(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown},ref:"input"})},onBlur:function(){this.isFocused=!1},onChange:function(){var t=this;if(!this.isDisabled){var e=this.value,n=this.internalValue;if(this.isMultiple){Array.isArray(n)||(n=[]);var r=n.length;n=n.filter((function(n){return!t.valueComparator(n,e)})),n.length===r&&n.push(e)}else n=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(n,this.trueValue)?this.falseValue:this.trueValue:e?this.valueComparator(n,e)?null:e:!n;this.validate(!0,n),this.internalValue=n,this.hasColor=n}},onFocus:function(){this.isFocused=!0},onKeydown:function(t){}}});function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,r="/"===a.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),a="/"===o(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&a&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e1d9:function(t,e,n){t.exports=n.p+"img/samsung.292327fe.svg"},ec29:function(t,e,n){}}]); \ No newline at end of file diff --git a/app/src/main/java/org/itxtech/flashmaster/MainActivity.kt b/app/src/main/java/org/itxtech/flashmaster/MainActivity.kt index 939edb9..ff9a535 100644 --- a/app/src/main/java/org/itxtech/flashmaster/MainActivity.kt +++ b/app/src/main/java/org/itxtech/flashmaster/MainActivity.kt @@ -4,6 +4,8 @@ import android.app.AlertDialog import android.content.Intent import android.net.Uri import android.os.Bundle +import android.os.Handler +import android.view.View import android.webkit.WebView import android.webkit.WebViewClient import androidx.appcompat.app.AppCompatActivity @@ -66,6 +68,13 @@ class MainActivity : AppCompatActivity() { } super.doUpdateVisitedHistory(view, url, isReload) } + + override fun onPageFinished(view: WebView?, url: String?) { + Handler().postDelayed({ + view?.visibility = View.VISIBLE + }, 500) + super.onPageFinished(view, url) + } } webView.loadUrl("file:///android_asset/index.html") } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index fd21dce..e75c75f 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -3,12 +3,40 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="match_parent" + android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" + android:background="@color/colorPrimaryDark" tools:context=".MainActivity"> + - + + + + + diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 0d6e114..b504bd8 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -2,6 +2,6 @@ FlashMaster 关于 FlashMaster - FlashMaster ver\nRevsion: rev\nby PeratX@iTXTech.org\n\nCopyright © 2019 iTX Technologies + FlashMaster ver\nRevision: rev\nby PeratX@iTXTech.org\n\n遵循 Apache License 2.0 开源\n\nCopyright © 2019 iTX Technologies diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index bbd0c4f..374d3be 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2,6 +2,6 @@ FlashMaster About FlashMaster - FlashMaster ver\nRevision: rev\nby PeratX@iTXTech.org\n\nCopyright © 2019 iTX Technologies + FlashMaster ver\nRevision: rev\nby PeratX@iTXTech.org\n\nLicensed under Apache License 2.0\n\nCopyright © 2019 iTX Technologies diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 4e88d0a..57f7599 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -3,5 +3,6 @@ @color/colorPrimary @color/colorPrimaryDark @color/colorAccent + @color/colorPrimaryDark