@dawnim/admin 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NOTICE.md +5 -0
- package/README.md +70 -0
- package/dist/ArtException.vue_vue_type_script_setup_true_lang-BJENynFu.js +1 -0
- package/dist/ArtResultPage.vue_vue_type_script_setup_true_lang-BONLhvBi.js +1 -0
- package/dist/Iframe-CJvChV0K.js +1 -0
- package/dist/about-project-EJCHBeHP.js +1 -0
- package/dist/active-user-BxbULWyR.js +1 -0
- package/dist/apl-CXdQSnD-.js +1 -0
- package/dist/asciiarmor-D5V0T9Cu.js +1 -0
- package/dist/asn1-DWPaVWf6.js +1 -0
- package/dist/asterisk-B46aRdXb.js +1 -0
- package/dist/brainfuck-CtZaYBKt.js +1 -0
- package/dist/card-list-D2c7gK9F.js +1 -0
- package/dist/category-dialog-CFbZWtxQ.js +1 -0
- package/dist/category-dialog.vue_vue_type_script_setup_true_lang-vUyFy1Ni.js +1 -0
- package/dist/clike-DDL4FJw5.js +1 -0
- package/dist/clike-DDL4FJw5.js.gz +0 -0
- package/dist/clojure-DiuoqK-z.js +1 -0
- package/dist/clojure-DiuoqK-z.js.gz +0 -0
- package/dist/cmake-DXn5xaP-.js +1 -0
- package/dist/cobol-stawOqaz.js +1 -0
- package/dist/coffeescript-BTDxI-eT.js +1 -0
- package/dist/commonlisp-vq6DHwts.js +1 -0
- package/dist/crystal-CRzZ78HM.js +1 -0
- package/dist/css-B1Y5T7kp.js +1 -0
- package/dist/css-B1Y5T7kp.js.gz +0 -0
- package/dist/cypher-gJDei3ni.js +1 -0
- package/dist/d-BShv7fp-.js +1 -0
- package/dist/dashboard-dialog-IiCxtAD4.js +1 -0
- package/dist/dashboard-dialog.vue_vue_type_script_setup_true_lang-ChtQJBfW.js +1 -0
- package/dist/database-CQjOJzes.js +1 -0
- package/dist/dawn-admin.css +1 -0
- package/dist/dawn-admin.css.gz +0 -0
- package/dist/dawn-admin.js +1 -0
- package/dist/dept-BKmSFUCB.js +1 -0
- package/dist/diff-UJJ5BM9S.js +1 -0
- package/dist/dockerfile-DVQ9Q8O9.js +1 -0
- package/dist/dtd-DI9Herc-.js +1 -0
- package/dist/dylan-DkEP81N9.js +1 -0
- package/dist/dynamic-stats-BnPJMFK-.js +1 -0
- package/dist/ebnf-B-Df8AvO.js +1 -0
- package/dist/ecl-DPFc0Uaf.js +1 -0
- package/dist/edit-dialog-BBBZIbuB.js +1 -0
- package/dist/edit-dialog-BazgbiwK.js +1 -0
- package/dist/edit-dialog-Bq9uTpJn.js +1 -0
- package/dist/edit-dialog-CovyWgcs.js +1 -0
- package/dist/edit-dialog-Dd0pVIzr.js +1 -0
- package/dist/edit-dialog-Dd0pVIzr.js.gz +0 -0
- package/dist/edit-dialog-pmaont1t.js +1 -0
- package/dist/edit-dialog.vue_vue_type_script_setup_true_lang-6d2RTchh.js +1 -0
- package/dist/edit-dialog.vue_vue_type_script_setup_true_lang-BVBm4mcx.js +1 -0
- package/dist/edit-dialog.vue_vue_type_script_setup_true_lang-BddJS2fG.js +1 -0
- package/dist/edit-dialog.vue_vue_type_script_setup_true_lang-BeI5rmV9.js +1 -0
- package/dist/edit-dialog.vue_vue_type_script_setup_true_lang-bfosZcGJ.js +1 -0
- package/dist/eiffel-DR5c0IrL.js +1 -0
- package/dist/elm-DompmV0j.js +1 -0
- package/dist/erlang-BuqgqA5h.js +1 -0
- package/dist/factor-Bk9_H-XT.js +1 -0
- package/dist/fcl-CVaBTCzQ.js +1 -0
- package/dist/forth-POgR1ypr.js +1 -0
- package/dist/fortran-DL7KluxX.js +1 -0
- package/dist/gas-8mz5Q3qN.js +1 -0
- package/dist/gherkin-B6X1vGSW.js +1 -0
- package/dist/groovy-DnIzCrpZ.js +1 -0
- package/dist/haskell-CLQs6EAM.js +1 -0
- package/dist/haxe-D25e-2l-.js +1 -0
- package/dist/http-BKJkqRj4.js +1 -0
- package/dist/idl-pcmmZuaN.js +1 -0
- package/dist/idl-pcmmZuaN.js.gz +0 -0
- package/dist/index-0RG7VZKz.js +4 -0
- package/dist/index-0RG7VZKz.js.gz +0 -0
- package/dist/index-7Vu0l3gw.js +1 -0
- package/dist/index-B0BGNXF8.js +1 -0
- package/dist/index-B9iakVQu.js +1 -0
- package/dist/index-B9iakVQu.js.gz +0 -0
- package/dist/index-BAcWPZfY.js +1 -0
- package/dist/index-BK4QP5Db.js +2 -0
- package/dist/index-BLZJtqhq.js +1 -0
- package/dist/index-BQCruRb-.js +1 -0
- package/dist/index-BWgJ9Las.js +1 -0
- package/dist/index-BXBk1T-S.js +3 -0
- package/dist/index-BXBk1T-S.js.gz +0 -0
- package/dist/index-BXOS8JF1.js +1 -0
- package/dist/index-BZ1t7YGG.js +1 -0
- package/dist/index-Bd4jHi3T.js +1 -0
- package/dist/index-Bl-CQWa6.js +3 -0
- package/dist/index-Bl-CQWa6.js.gz +0 -0
- package/dist/index-BnG10cqc.js +1 -0
- package/dist/index-BnG10cqc.js.gz +0 -0
- package/dist/index-BnJrwVYD.js +1 -0
- package/dist/index-C1G9Of3C.js +1 -0
- package/dist/index-C2hJYkAb.js +1 -0
- package/dist/index-C2hJYkAb.js.gz +0 -0
- package/dist/index-C5NyqbgG.js +4 -0
- package/dist/index-CAqVjcmC.js +17 -0
- package/dist/index-CAqVjcmC.js.gz +0 -0
- package/dist/index-CHBdXIDd.js +1 -0
- package/dist/index-CHCWjf_1.js +1 -0
- package/dist/index-CHCWjf_1.js.gz +0 -0
- package/dist/index-CR2p0T7i.js +3 -0
- package/dist/index-CR2p0T7i.js.gz +0 -0
- package/dist/index-CVQLseNx.js +1 -0
- package/dist/index-CWt4xm0D.js +1 -0
- package/dist/index-CWt4xm0D.js.gz +0 -0
- package/dist/index-C_2NHhzn.js +1 -0
- package/dist/index-Cca7Wsnf.js +18 -0
- package/dist/index-Cca7Wsnf.js.gz +0 -0
- package/dist/index-CcbYxBn4.js +12 -0
- package/dist/index-CcbYxBn4.js.gz +0 -0
- package/dist/index-Ce9gkmXs.js +1 -0
- package/dist/index-Ceeb1qE0.js +3 -0
- package/dist/index-Ceeb1qE0.js.gz +0 -0
- package/dist/index-CiZSnbzE.js +1 -0
- package/dist/index-ClZlvYvj.js +1 -0
- package/dist/index-CnTM3Ach.js +6 -0
- package/dist/index-CnTM3Ach.js.gz +0 -0
- package/dist/index-Cp-fv37y.js +4 -0
- package/dist/index-Cp-fv37y.js.gz +0 -0
- package/dist/index-Crvow25R.js +1 -0
- package/dist/index-Cx5937d9.js +1 -0
- package/dist/index-D0NI3A1v.js +4 -0
- package/dist/index-D0NI3A1v.js.gz +0 -0
- package/dist/index-D4a7JtdS.js +1 -0
- package/dist/index-DBPTAZmk.js +3 -0
- package/dist/index-DIp735KS.js +4 -0
- package/dist/index-DIp735KS.js.gz +0 -0
- package/dist/index-DP-1CzK_.js +1 -0
- package/dist/index-D_7yP4r2.js +1 -0
- package/dist/index-D_7yP4r2.js.gz +0 -0
- package/dist/index-Ds87Oyro.js +147 -0
- package/dist/index-Ds87Oyro.js.gz +0 -0
- package/dist/index-Dzt-VOu5.js +19 -0
- package/dist/index-Dzt-VOu5.js.gz +0 -0
- package/dist/index-Q3oq1Vb2.js +1 -0
- package/dist/index-Q3oq1Vb2.js.gz +0 -0
- package/dist/index-Q6zbzyN1.js +1 -0
- package/dist/index-RuXsU8oS.js +1 -0
- package/dist/index-TRi1Cdm1.js +2 -0
- package/dist/index-V5-jVLAO.js +1 -0
- package/dist/index-Z7VB5G-z.js +3 -0
- package/dist/index-Z7VB5G-z.js.gz +0 -0
- package/dist/index-ZUnLlm9A.js +4 -0
- package/dist/index-ZUnLlm9A.js.gz +0 -0
- package/dist/index-afWWh_4w.js +3 -0
- package/dist/index-afWWh_4w.js.gz +0 -0
- package/dist/index-f0OR7OEU.js +3 -0
- package/dist/index-f0OR7OEU.js.gz +0 -0
- package/dist/index-i0XYoFL7.js +1 -0
- package/dist/index-i0XYoFL7.js.gz +0 -0
- package/dist/index-msR51AnZ.js +5 -0
- package/dist/index-msR51AnZ.js.gz +0 -0
- package/dist/index-oxZGptOJ.js +1 -0
- package/dist/index-pI6I_y1y.js +1 -0
- package/dist/index-tPvSMEjF.js +1 -0
- package/dist/index-zLWzCPhj.js +1 -0
- package/dist/index-zLWzCPhj.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-B6eTzKOR.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-C0f6HulB.js +1 -0
- package/dist/javascript-BVaBnk3P.js +1 -0
- package/dist/javascript-BVaBnk3P.js.gz +0 -0
- package/dist/julia-DjdwvFuI.js +1 -0
- package/dist/livescript-HO6ttBFx.js +1 -0
- package/dist/logs-HAB8gKiO.js +1 -0
- package/dist/lua-BvgfYBhq.js +1 -0
- package/dist/mathematica-IIbmv7SK.js +1 -0
- package/dist/mbox-DoeuZPxA.js +1 -0
- package/dist/mirc-DkvFAiy5.js +1 -0
- package/dist/mllike-3c2dg9RT.js +1 -0
- package/dist/modelica-DSrSSXCg.js +1 -0
- package/dist/move-dialog-CljSQgvk.js +1 -0
- package/dist/move-dialog.vue_vue_type_script_setup_true_lang-B5DxdTm3.js +1 -0
- package/dist/mscgen-B2igx18G.js +1 -0
- package/dist/mumps-zvxmGV4l.js +1 -0
- package/dist/nginx-B4hAVlXN.js +1 -0
- package/dist/nsis-Cx8FAvMN.js +1 -0
- package/dist/ntriples-BSwWqoLa.js +1 -0
- package/dist/octave-C4hdQ5Hf.js +1 -0
- package/dist/oz-qQq7irPq.js +1 -0
- package/dist/pascal-CafrKXZF.js +1 -0
- package/dist/perl-tdMlh9QA.js +1 -0
- package/dist/permission-dialog-CILqvZyV.js +1 -0
- package/dist/permission-dialog.vue_vue_type_script_setup_true_lang-CVIZlQfX.js +1 -0
- package/dist/pig-CwGJVRC4.js +1 -0
- package/dist/post-BcZf7www.js +1 -0
- package/dist/powershell-D1ly3AHC.js +1 -0
- package/dist/properties-_nPj978X.js +1 -0
- package/dist/protobuf-B4y9do6W.js +1 -0
- package/dist/pug-DeZyk7zd.js +1 -0
- package/dist/puppet-Bc-yJKzi.js +1 -0
- package/dist/python-On6Xi21R.js +1 -0
- package/dist/q-mUfi2b_o.js +1 -0
- package/dist/r-BA4EbLKE.js +1 -0
- package/dist/recycle-list-XFykXGzX.js +1 -0
- package/dist/recycle-list.vue_vue_type_script_setup_true_lang-LIhx26bC.js +1 -0
- package/dist/role-BYBv_DkA.js +1 -0
- package/dist/rpm-DI_rRufH.js +1 -0
- package/dist/ruby-CR-u2WLS.js +1 -0
- package/dist/sales-overview-onES2CVf.js +1 -0
- package/dist/sas-Bqaci40L.js +1 -0
- package/dist/scheme-qjP0V5Ag.js +1 -0
- package/dist/shell-BLav31RL.js +1 -0
- package/dist/sieve-r025o_jW.js +1 -0
- package/dist/simple-mode-CjHKX61j.js +1 -0
- package/dist/smalltalk-C7J3IyEP.js +1 -0
- package/dist/solr-78MBEUkU.js +1 -0
- package/dist/sparql-BRLJFz69.js +1 -0
- package/dist/spreadsheet-CGlWr0eM.js +1 -0
- package/dist/sql-ByLYq2fX.js +1 -0
- package/dist/sql-ByLYq2fX.js.gz +0 -0
- package/dist/stex-BuioYw3P.js +1 -0
- package/dist/stylus-Bdo_Aemu.js +1 -0
- package/dist/stylus-Bdo_Aemu.js.gz +0 -0
- package/dist/swift-B_XXVlXX.js +1 -0
- package/dist/table-dialog-JSOywYQL.js +1 -0
- package/dist/table-dialog.vue_vue_type_script_setup_true_lang-boQfkqZK.js +1 -0
- package/dist/table-search-6Qrrm8ho.js +1 -0
- package/dist/table-search-B-BN4agP.js +1 -0
- package/dist/table-search-B3tv4oEK.js +1 -0
- package/dist/table-search-BVuxu1BX.js +1 -0
- package/dist/table-search-Bh7PmZ9f.js +1 -0
- package/dist/table-search-C1bQRnZb.js +1 -0
- package/dist/table-search-CZT7Buhx.js +1 -0
- package/dist/table-search-D06WXEmf.js +1 -0
- package/dist/table-search-DvI258fI.js +1 -0
- package/dist/table-search-uW_tXDLr.js +1 -0
- package/dist/table-search.vue_vue_type_script_setup_true_lang-B17NrMdS.js +1 -0
- package/dist/table-search.vue_vue_type_script_setup_true_lang-B7MWUQB0.js +1 -0
- package/dist/table-search.vue_vue_type_script_setup_true_lang-BEaYoQd9.js +1 -0
- package/dist/table-search.vue_vue_type_script_setup_true_lang-C5weahis.js +1 -0
- package/dist/table-search.vue_vue_type_script_setup_true_lang-C9dvnRCX.js +1 -0
- package/dist/table-search.vue_vue_type_script_setup_true_lang-CCYK3xKm.js +1 -0
- package/dist/table-search.vue_vue_type_script_setup_true_lang-CL-EyPCo.js +1 -0
- package/dist/table-search.vue_vue_type_script_setup_true_lang-DpDxK-ub.js +1 -0
- package/dist/table-search.vue_vue_type_script_setup_true_lang-Kg3z3q12.js +1 -0
- package/dist/tcl-B2fODqDH.js +1 -0
- package/dist/textile-BuVhTOzU.js +1 -0
- package/dist/tiddlywiki-BgR6AEZu.js +1 -0
- package/dist/tiki-CI-ztowC.js +1 -0
- package/dist/todo-list-CXnHVFv1.js +1 -0
- package/dist/toml-BVJm5Fzd.js +1 -0
- package/dist/troff-Ce85hlLp.js +1 -0
- package/dist/ttcn-BxnYHtq8.js +1 -0
- package/dist/ttcn-cfg-CKJxb-l2.js +1 -0
- package/dist/turtle-BkSuIpt-.js +1 -0
- package/dist/useHeaderBar-CzFW8w5y.js +1 -0
- package/dist/user-BTzNsq-X.js +1 -0
- package/dist/vb-BHgjm0DN.js +1 -0
- package/dist/vbscript-VzWlGt02.js +1 -0
- package/dist/velocity-BdD_26Jv.js +1 -0
- package/dist/verilog-C8nH2N0M.js +1 -0
- package/dist/vhdl-CWWH2SUo.js +1 -0
- package/dist/webidl-CGwyPRYs.js +1 -0
- package/dist/xquery-CVDBqZPY.js +1 -0
- package/dist/yacas-I8QjZlxf.js +1 -0
- package/dist/z80-DMVFMNEx.js +1 -0
- package/package.json +165 -0
- package/types/index.d.ts +117 -0
- package/types/table.d.ts +142 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var t=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],r=e(t),n=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],a=e(n),i=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],o=e(i),c=["true","false","Infinity","NaN","null"],l=e(c),m=e(["callback","dictionary","enum","interface"]),u=e(["typedef"]),s=/^[:<=>?]/,f=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,d=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,y=/^_?[A-Za-z][0-9A-Z_a-z-]*/,p=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,b=/^"[^"]*"/,h=/^\/\*.*?\*\//,A=/^\/\*.*/,g=/^.*?\*\//;const D={name:"webidl",startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,t){var n=function(e,t){if(e.eatSpace())return null;if(t.inComment)return e.match(g)?(t.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(h))return"comment";if(e.match(A))return t.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(f)||e.match(d)))return"number";if(e.match(b))return"string";if(t.startDef&&e.match(y))return"def";if(t.endDef&&e.match(p))return t.endDef=!1,"def";if(e.match(o))return"keyword";if(e.match(a)){var n=t.lastToken,i=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return":"===n||"implements"===n||"implements"===i||"="===i?"builtin":"type"}return e.match(r)?"builtin":e.match(l)?"atom":e.match(y)?"variable":e.match(s)?"operator":(e.next(),null)}(e,t);if(n){var i=e.current();t.lastToken=i,"keyword"===n?(t.startDef=m.test(i),t.endDef=t.endDef||u.test(i)):t.startDef=!1}return n},languageData:{autocomplete:t.concat(n).concat(i).concat(c)}};export{D as webIDL};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("operator"),n={type:"atom",style:"atom"},r={type:"axis_specifier",style:"qualifier"},a={",":{type:"punctuation",style:null}},i=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],o=0,s=i.length;o<s;o++)a[i[o]]=e(i[o]);var c=["xs:anyAtomicType","xs:anySimpleType","xs:anyType","xs:anyURI","xs:base64Binary","xs:boolean","xs:byte","xs:date","xs:dateTime","xs:dateTimeStamp","xs:dayTimeDuration","xs:decimal","xs:double","xs:duration","xs:ENTITIES","xs:ENTITY","xs:float","xs:gDay","xs:gMonth","xs:gMonthDay","xs:gYear","xs:gYearMonth","xs:hexBinary","xs:ID","xs:IDREF","xs:IDREFS","xs:int","xs:integer","xs:item","xs:java","xs:language","xs:long","xs:Name","xs:NCName","xs:negativeInteger","xs:NMTOKEN","xs:NMTOKENS","xs:nonNegativeInteger","xs:nonPositiveInteger","xs:normalizedString","xs:NOTATION","xs:numeric","xs:positiveInteger","xs:precisionDecimal","xs:QName","xs:short","xs:string","xs:time","xs:token","xs:unsignedByte","xs:unsignedInt","xs:unsignedLong","xs:unsignedShort","xs:untyped","xs:untypedAtomic","xs:yearMonthDuration"];for(o=0,s=c.length;o<s;o++)a[c[o]]=n;var u=["eq","ne","lt","le","gt","ge",":=","=",">",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(o=0,s=u.length;o<s;o++)a[u[o]]=t;var l=["self::","attribute::","child::","descendant::","descendant-or-self::","parent::","ancestor::","ancestor-or-self::","following::","preceding::","following-sibling::","preceding-sibling::"];for(o=0,s=l.length;o<s;o++)a[l[o]]=r;return a}();function t(e,t,n){return t.tokenize=n,n(e,t)}function n(f,d){var g=f.next(),y=!1,h=function(e){return'"'===e.current()?e.match(/^[^\"]+\"\:/,!1):"'"===e.current()&&e.match(/^[^\"]+\'\:/,!1)}(f);if("<"==g){if(f.match("!--",!0))return t(f,d,s);if(f.match("![CDATA",!1))return d.tokenize=c,"tag";if(f.match("?",!1))return t(f,d,u);var v=f.eat("/");f.eatSpace();for(var k,b="";k=f.eat(/[^\s\u00a0=<>\"\'\/?]/);)b+=k;return t(f,d,function(e,t){return function(r,a){return r.eatSpace(),t&&r.eat(">")?(x(a),a.tokenize=n,"tag"):(r.eat("/")||m(a,{type:"tag",name:e,tokenize:n}),r.eat(">")?(a.tokenize=n,"tag"):(a.tokenize=o,"tag"))}}(b,v))}if("{"==g)return m(d,{type:"codeblock"}),null;if("}"==g)return x(d),null;if(l(d))return">"==g?"tag":"/"==g&&f.eat(">")?(x(d),"tag"):"variable";if(/\d/.test(g))return f.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===g&&f.eat(":"))return m(d,{type:"comment"}),t(f,d,r);if(h||'"'!==g&&"'"!==g){if("$"===g)return t(f,d,i);if(":"===g&&f.eat("="))return"keyword";if("("===g)return m(d,{type:"paren"}),null;if(")"===g)return x(d),null;if("["===g)return m(d,{type:"bracket"}),null;if("]"===g)return x(d),null;var z=e.propertyIsEnumerable(g)&&e[g];if(h&&'"'===g)for(;'"'!==f.next(););if(h&&"'"===g)for(;"'"!==f.next(););z||f.eatWhile(/[\w\$_-]/);var w=f.eat(":");!f.eat(":")&&w&&f.eatWhile(/[\w\$_-]/),f.match(/^[ \t]*\(/,!1)&&(y=!0);var I=f.current();return z=e.propertyIsEnumerable(I)&&e[I],y&&!z&&(z={type:"function_call",style:"def"}),function(e){return p(e,"xmlconstructor")}(d)?(x(d),"variable"):("element"!=I&&"attribute"!=I&&"axis_specifier"!=z.type||m(d,{type:"xmlconstructor"}),z?z.style:"variable")}return a(f,d,g)}function r(e,t){for(var n,r=!1,a=!1,i=0;n=e.next();){if(")"==n&&r){if(!(i>0)){x(t);break}i--}else":"==n&&a&&i++;r=":"==n,a="("==n}return"comment"}function a(e,r,a,i){let o=function(e,t){return function(r,a){for(var i;i=r.next();){if(i==e){x(a),t&&(a.tokenize=t);break}if(r.match("{",!1)&&f(a))return m(a,{type:"codeblock"}),a.tokenize=n,"string"}return"string"}}(a,i);return m(r,{type:"string",name:a,tokenize:o}),t(e,r,o)}function i(e,t){var r=/[\w\$_-]/;if(e.eat('"')){for(;'"'!==e.next(););e.eat(":")}else e.eatWhile(r),e.match(":=",!1)||e.eat(":");return e.eatWhile(r),t.tokenize=n,"variable"}function o(e,t){var r=e.next();return"/"==r&&e.eat(">")?(f(t)&&x(t),l(t)&&x(t),"tag"):">"==r?(f(t)&&x(t),"tag"):"="==r?null:'"'==r||"'"==r?a(e,t,r,o):(f(t)||m(t,{type:"attribute",tokenize:o}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(x(t),t.tokenize=n),"attribute")}function s(e,t){for(var r;r=e.next();)if("-"==r&&e.match("->",!0))return t.tokenize=n,"comment"}function c(e,t){for(var r;r=e.next();)if("]"==r&&e.match("]",!0))return t.tokenize=n,"comment"}function u(e,t){for(var r;r=e.next();)if("?"==r&&e.match(">",!0))return t.tokenize=n,"processingInstruction"}function l(e){return p(e,"tag")}function f(e){return p(e,"attribute")}function p(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function m(e,t){e.stack.push(t)}function x(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||n}const d={name:"xquery",startState:function(){return{tokenize:n,cc:[],stack:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"(:",close:":)"}}}};export{d as xQuery};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"),t="(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)",n=new RegExp("(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"),r=new RegExp(t),o=new RegExp(t+"?_"+t),a=new RegExp(t+"\\s*\\(");function i(t,i){var s;if('"'===(s=t.next()))return i.tokenize=c,i.tokenize(t,i);if("/"===s){if(t.eat("*"))return i.tokenize=u,i.tokenize(t,i);if(t.eat("/"))return t.skipToEnd(),"comment"}t.backUp(1);var p=t.match(/^(\w+)\s*\(/,!1);null!==p&&e.hasOwnProperty(p[1])&&i.scopes.push("bodied");var m=l(i);if("bodied"===m&&"["===s&&i.scopes.pop(),"["!==s&&"{"!==s&&"("!==s||i.scopes.push(s),("["===(m=l(i))&&"]"===s||"{"===m&&"}"===s||"("===m&&")"===s)&&i.scopes.pop(),";"===s)for(;"bodied"===m;)i.scopes.pop(),m=l(i);return t.match(/\d+ *#/,!0,!1)?"qualifier":t.match(n,!0,!1)?"number":t.match(o,!0,!1)?"variableName.special":t.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":t.match(a,!0,!1)?(t.backUp(1),"variableName.function"):t.match(r,!0,!1)?"variable":t.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function c(e,t){for(var n,r=!1,o=!1;null!=(n=e.next());){if('"'===n&&!o){r=!0;break}o=!o&&"\\"===n}return r&&!o&&(t.tokenize=i),"string"}function u(e,t){for(var n,r;null!=(r=e.next());){if("*"===n&&"/"===r){t.tokenize=i;break}n=r}return"comment"}function l(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}const s={name:"yacas",startState:function(){return{tokenize:i,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(e,t,n){if(e.tokenize!==i&&null!==e.tokenize)return null;var r=0;return"]"!==t&&"];"!==t&&"}"!==t&&"};"!==t&&");"!==t||(r=-1),(e.scopes.length+r)*n.unit},languageData:{electricInput:/[{}\[\]()\;]/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};export{s as yacas};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){var t,r;e?(t=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,r=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(t=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,r=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var i=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,n=/^(n?[zc]|p[oe]?|m)\b/i,l=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{name:"z80",startState:function(){return{context:0}},token:function(c,s){if(c.column()||(s.context=0),c.eatSpace())return null;var o;if(c.eatWhile(/\w/)){if(e&&c.eat(".")&&c.eatWhile(/\w/),o=c.current(),!c.indentation())return c.match(a)?"number":null;if((1==s.context||4==s.context)&&i.test(o))return s.context=4,"variable";if(2==s.context&&n.test(o))return s.context=4,"variableName.special";if(t.test(o))return s.context=1,"keyword";if(r.test(o))return s.context=2,"keyword";if(4==s.context&&a.test(o))return"number";if(l.test(o))return"error"}else{if(c.eat(";"))return c.skipToEnd(),"comment";if(c.eat('"')){for(;(o=c.next())&&'"'!=o;)"\\"==o&&c.next();return"string"}if(c.eat("'")){if(c.match(/\\?.'/))return"number"}else if(c.eat(".")||c.sol()&&c.eat("#")){if(s.context=5,c.eatWhile(/\w/))return"def"}else if(c.eat("$")){if(c.eatWhile(/[\da-f]/i))return"number"}else if(c.eat("%")){if(c.eatWhile(/[01]/))return"number"}else c.next()}return null}}}const t=e(!1);e(!0);export{t as z80};
|
package/package.json
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dawnim/admin",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Vue 3 后台管理组件与系统页面",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "dawnim",
|
|
7
|
+
"homepage": "https://github.com/dawnim/dawn-admin#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/dawnim/dawn-admin.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/dawnim/dawn-admin/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"vue3",
|
|
17
|
+
"admin",
|
|
18
|
+
"element-plus",
|
|
19
|
+
"dawn"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"type": "module",
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20.19.0",
|
|
27
|
+
"pnpm": ">=10"
|
|
28
|
+
},
|
|
29
|
+
"config": {
|
|
30
|
+
"commitizen": {
|
|
31
|
+
"path": "node_modules/cz-git"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"lint-staged": {
|
|
35
|
+
"*.{js,ts,mjs,mts,tsx}": [
|
|
36
|
+
"eslint --fix",
|
|
37
|
+
"prettier --write"
|
|
38
|
+
],
|
|
39
|
+
"*.{cjs,json,jsonc}": [
|
|
40
|
+
"prettier --write"
|
|
41
|
+
],
|
|
42
|
+
"*.vue": [
|
|
43
|
+
"eslint --fix",
|
|
44
|
+
"stylelint --fix --allow-empty-input",
|
|
45
|
+
"prettier --write"
|
|
46
|
+
],
|
|
47
|
+
"*.{html,htm}": [
|
|
48
|
+
"prettier --write"
|
|
49
|
+
],
|
|
50
|
+
"*.{scss,css,less}": [
|
|
51
|
+
"stylelint --fix --allow-empty-input",
|
|
52
|
+
"prettier --write"
|
|
53
|
+
],
|
|
54
|
+
"*.{md,mdx}": [
|
|
55
|
+
"prettier --write"
|
|
56
|
+
],
|
|
57
|
+
"*.{yaml,yml}": [
|
|
58
|
+
"prettier --write"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@codemirror/language": "^6.13.1",
|
|
63
|
+
"@codemirror/language-data": "^6.5.2",
|
|
64
|
+
"@codemirror/theme-one-dark": "^6.1.3",
|
|
65
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
66
|
+
"@iconify/vue": "^5.0.0",
|
|
67
|
+
"@noble/hashes": "^1.8.0",
|
|
68
|
+
"@tailwindcss/vite": "^4.1.14",
|
|
69
|
+
"@vueuse/core": "^13.9.0",
|
|
70
|
+
"axios": "^1.12.2",
|
|
71
|
+
"codemirror": "^6.0.2",
|
|
72
|
+
"crypto-js": "^4.2.0",
|
|
73
|
+
"echarts": "^6.0.0",
|
|
74
|
+
"element-plus": "^2.11.2",
|
|
75
|
+
"highlight.js": "^11.10.0",
|
|
76
|
+
"mitt": "^3.0.1",
|
|
77
|
+
"nprogress": "^0.2.0",
|
|
78
|
+
"ohash": "^2.0.11",
|
|
79
|
+
"pinia": "^3.0.3",
|
|
80
|
+
"pinia-plugin-persistedstate": "^4.3.0",
|
|
81
|
+
"spark-md5": "^3.0.2",
|
|
82
|
+
"tailwindcss": "^4.1.14",
|
|
83
|
+
"vue": "^3.5.21",
|
|
84
|
+
"vue-codemirror": "^6.1.1",
|
|
85
|
+
"vue-draggable-plus": "^0.6.0",
|
|
86
|
+
"vue-i18n": "^9.14.0",
|
|
87
|
+
"vue-router": "^4.5.1"
|
|
88
|
+
},
|
|
89
|
+
"devDependencies": {
|
|
90
|
+
"@commitlint/cli": "^19.4.1",
|
|
91
|
+
"@commitlint/config-conventional": "^19.4.1",
|
|
92
|
+
"@eslint/js": "^9.9.1",
|
|
93
|
+
"@types/node": "^24.0.5",
|
|
94
|
+
"@types/spark-md5": "^3.0.5",
|
|
95
|
+
"@typescript-eslint/eslint-plugin": "^8.3.0",
|
|
96
|
+
"@typescript-eslint/parser": "^8.3.0",
|
|
97
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
98
|
+
"@vue/compiler-sfc": "^3.5.21",
|
|
99
|
+
"commitizen": "^4.3.0",
|
|
100
|
+
"cz-git": "^1.11.1",
|
|
101
|
+
"eslint": "^9.9.1",
|
|
102
|
+
"eslint-config-prettier": "^9.1.0",
|
|
103
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
104
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
105
|
+
"globals": "^15.9.0",
|
|
106
|
+
"husky": "^9.1.5",
|
|
107
|
+
"lint-staged": "^15.5.2",
|
|
108
|
+
"prettier": "^3.5.3",
|
|
109
|
+
"rollup-plugin-visualizer": "^5.12.0",
|
|
110
|
+
"sass": "^1.81.0",
|
|
111
|
+
"sass-embedded": "^1.103.1",
|
|
112
|
+
"stylelint": "^16.20.0",
|
|
113
|
+
"stylelint-config-html": "^1.1.0",
|
|
114
|
+
"stylelint-config-recess-order": "^4.6.0",
|
|
115
|
+
"stylelint-config-recommended-scss": "^14.1.0",
|
|
116
|
+
"stylelint-config-recommended-vue": "^1.5.0",
|
|
117
|
+
"stylelint-config-standard": "^36.0.1",
|
|
118
|
+
"terser": "^5.36.0",
|
|
119
|
+
"tsx": "^4.20.3",
|
|
120
|
+
"typescript": "~5.6.3",
|
|
121
|
+
"typescript-eslint": "^8.9.0",
|
|
122
|
+
"unplugin-auto-import": "^20.2.0",
|
|
123
|
+
"unplugin-vue-components": "^29.1.0",
|
|
124
|
+
"vite": "^7.1.5",
|
|
125
|
+
"vite-plugin-compression": "^0.5.1",
|
|
126
|
+
"vite-plugin-vue-devtools": "^7.7.6",
|
|
127
|
+
"vue-tsc": "~2.1.6"
|
|
128
|
+
},
|
|
129
|
+
"private": false,
|
|
130
|
+
"files": [
|
|
131
|
+
"dist",
|
|
132
|
+
"types",
|
|
133
|
+
"LICENSE",
|
|
134
|
+
"NOTICE.md"
|
|
135
|
+
],
|
|
136
|
+
"main": "./dist/dawn-admin.js",
|
|
137
|
+
"module": "./dist/dawn-admin.js",
|
|
138
|
+
"types": "./types/index.d.ts",
|
|
139
|
+
"sideEffects": [
|
|
140
|
+
"**/*.css",
|
|
141
|
+
"**/*.scss"
|
|
142
|
+
],
|
|
143
|
+
"exports": {
|
|
144
|
+
".": {
|
|
145
|
+
"types": "./types/index.d.ts",
|
|
146
|
+
"import": "./dist/dawn-admin.js"
|
|
147
|
+
},
|
|
148
|
+
"./style.css": "./dist/dawn-admin.css"
|
|
149
|
+
},
|
|
150
|
+
"peerDependencies": {
|
|
151
|
+
"element-plus": "^2.11.0",
|
|
152
|
+
"pinia": "^3.0.0",
|
|
153
|
+
"vue": "^3.5.0",
|
|
154
|
+
"vue-i18n": "^9.14.0",
|
|
155
|
+
"vue-router": "^4.5.0"
|
|
156
|
+
},
|
|
157
|
+
"scripts": {
|
|
158
|
+
"dev": "vite",
|
|
159
|
+
"typecheck": "vue-tsc --noEmit",
|
|
160
|
+
"build": "vite build && vue-tsc --noEmit",
|
|
161
|
+
"lint": "eslint src",
|
|
162
|
+
"preview": "vite preview",
|
|
163
|
+
"test": "tsx --test tests/*.test.ts"
|
|
164
|
+
}
|
|
165
|
+
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { App, Component, DefineComponent } from 'vue'
|
|
2
|
+
import type { AxiosRequestConfig } from 'axios'
|
|
3
|
+
|
|
4
|
+
export interface Options {
|
|
5
|
+
apiBase?: string
|
|
6
|
+
wsURL?: string
|
|
7
|
+
title?: string
|
|
8
|
+
logo?: string
|
|
9
|
+
favicon?: string
|
|
10
|
+
header?: { before?: Component; after?: Component; right?: Component }
|
|
11
|
+
messages?: Record<string, Record<string, unknown>>
|
|
12
|
+
pages?: Record<string, () => Promise<{ default: Component } | Component>>
|
|
13
|
+
}
|
|
14
|
+
export type { Column, CrudApi, PageData, ListQuery } from './table'
|
|
15
|
+
export * from './table'
|
|
16
|
+
import type { Column, CrudApi, ListQuery } from './table'
|
|
17
|
+
export interface RequestConfig extends AxiosRequestConfig {
|
|
18
|
+
/** 保留第三方接口的原始响应结构。 */
|
|
19
|
+
rawResponse?: boolean
|
|
20
|
+
showErrorMessage?: boolean
|
|
21
|
+
showSuccessMessage?: boolean
|
|
22
|
+
}
|
|
23
|
+
export const request: {
|
|
24
|
+
get<T = unknown>(config: RequestConfig): Promise<T>
|
|
25
|
+
post<T = unknown>(config: RequestConfig): Promise<T>
|
|
26
|
+
patch<T = unknown>(config: RequestConfig): Promise<T>
|
|
27
|
+
put<T = unknown>(config: RequestConfig): Promise<T>
|
|
28
|
+
del<T = unknown>(config: RequestConfig): Promise<T>
|
|
29
|
+
request<T = unknown>(config: RequestConfig): Promise<T>
|
|
30
|
+
}
|
|
31
|
+
export function createAdmin(options?: Options): App
|
|
32
|
+
export const CrudPage: DefineComponent<{
|
|
33
|
+
resource?: string
|
|
34
|
+
api?: CrudApi<any, any, any>
|
|
35
|
+
permission?: string
|
|
36
|
+
columns: Column[]
|
|
37
|
+
search?: string[]
|
|
38
|
+
defaults?: Record<string, unknown>
|
|
39
|
+
editable?: boolean
|
|
40
|
+
exportable?: boolean
|
|
41
|
+
importable?: boolean
|
|
42
|
+
onChange?: () => void
|
|
43
|
+
}>
|
|
44
|
+
export const Upload: DefineComponent<{ categoryId?: number }>
|
|
45
|
+
export interface RealtimeMessage<T = unknown> {
|
|
46
|
+
type: string
|
|
47
|
+
id?: string
|
|
48
|
+
channel?: string
|
|
49
|
+
data?: T
|
|
50
|
+
request_id?: string
|
|
51
|
+
}
|
|
52
|
+
export type RealtimeHandler = (message: RealtimeMessage) => Promise<void> | void
|
|
53
|
+
export const realtime: {
|
|
54
|
+
status: Readonly<import('vue').Ref<'closed' | 'connecting' | 'ready'>>
|
|
55
|
+
on(type: string, handler: RealtimeHandler): () => void
|
|
56
|
+
send(message: Record<string, unknown>): void
|
|
57
|
+
request<T = unknown>(type: string, data?: unknown, timeout?: number): Promise<T>
|
|
58
|
+
subscribe(channel: string): void
|
|
59
|
+
unsubscribe(channel: string): void
|
|
60
|
+
}
|
|
61
|
+
export function openChat(user?: {
|
|
62
|
+
id: number
|
|
63
|
+
username: string
|
|
64
|
+
realname?: string
|
|
65
|
+
avatar?: string
|
|
66
|
+
}): void
|
|
67
|
+
|
|
68
|
+
export const Dashboard: DefineComponent
|
|
69
|
+
export const StatisticsDashboard: DefineComponent
|
|
70
|
+
export const WorkDashboard: DefineComponent
|
|
71
|
+
|
|
72
|
+
export interface ChartProps {
|
|
73
|
+
height?: string
|
|
74
|
+
loading?: boolean
|
|
75
|
+
isEmpty?: boolean
|
|
76
|
+
colors?: string[]
|
|
77
|
+
data: number[] | { name: string; data: number[] }[]
|
|
78
|
+
xAxisData?: string[]
|
|
79
|
+
showAxisLabel?: boolean
|
|
80
|
+
showAxisLine?: boolean
|
|
81
|
+
showSplitLine?: boolean
|
|
82
|
+
showTooltip?: boolean
|
|
83
|
+
showLegend?: boolean
|
|
84
|
+
legendPosition?: 'bottom' | 'top' | 'left' | 'right'
|
|
85
|
+
}
|
|
86
|
+
export const ArtBarChart: DefineComponent<
|
|
87
|
+
ChartProps & { barWidth?: string | number; stack?: boolean; borderRadius?: number | number[] }
|
|
88
|
+
>
|
|
89
|
+
export const ArtLineChart: DefineComponent<
|
|
90
|
+
ChartProps & {
|
|
91
|
+
lineWidth?: number
|
|
92
|
+
showAreaColor?: boolean
|
|
93
|
+
smooth?: boolean
|
|
94
|
+
symbol?: 'circle' | 'rect' | 'roundRect' | 'triangle' | 'diamond' | 'pin' | 'arrow' | 'none'
|
|
95
|
+
symbolSize?: number
|
|
96
|
+
animationDelay?: number
|
|
97
|
+
}
|
|
98
|
+
>
|
|
99
|
+
export const ArtCountTo: DefineComponent<{
|
|
100
|
+
target: number
|
|
101
|
+
duration?: number
|
|
102
|
+
autoStart?: boolean
|
|
103
|
+
decimals?: number
|
|
104
|
+
decimal?: string
|
|
105
|
+
separator?: string
|
|
106
|
+
prefix?: string
|
|
107
|
+
suffix?: string
|
|
108
|
+
disabled?: boolean
|
|
109
|
+
}>
|
|
110
|
+
export const ArtSvgIcon: DefineComponent<{ icon?: string }>
|
|
111
|
+
|
|
112
|
+
export function createResourceApi<
|
|
113
|
+
T extends Record<string, any> = Record<string, any>,
|
|
114
|
+
Create = Partial<T>,
|
|
115
|
+
Update = Partial<Create>,
|
|
116
|
+
Query extends ListQuery = ListQuery
|
|
117
|
+
>(path: string): import('./table').CrudApi<T, Create, Update, Query>
|
package/types/table.d.ts
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios'
|
|
2
|
+
import type { Ref, ComputedRef, DefineComponent } from 'vue'
|
|
3
|
+
import type { TableProps } from 'element-plus'
|
|
4
|
+
export interface Column {
|
|
5
|
+
prop: string
|
|
6
|
+
label: string
|
|
7
|
+
type?: 'text' | 'number' | 'password' | 'select' | 'date' | 'boolean' | 'textarea'
|
|
8
|
+
options?: { label: string; value: string | number }[]
|
|
9
|
+
maxlength?: number
|
|
10
|
+
hidden?: boolean
|
|
11
|
+
readonly?: boolean
|
|
12
|
+
required?: boolean
|
|
13
|
+
immutable?: boolean
|
|
14
|
+
}
|
|
15
|
+
/** 列表请求使用snake_case,page从1开始,page_size不设固定上限。 */
|
|
16
|
+
export interface ListQuery {
|
|
17
|
+
page?: number
|
|
18
|
+
page_size?: number
|
|
19
|
+
sort_by?: string
|
|
20
|
+
sort_order?: 'asc' | 'desc'
|
|
21
|
+
[key: string]: unknown
|
|
22
|
+
}
|
|
23
|
+
/** 保留服务端的真实记录、页码、每页条数和筛选总数。 */
|
|
24
|
+
export interface PageData<T = Record<string, any>> {
|
|
25
|
+
data: T[]
|
|
26
|
+
meta: { page: number; page_size: number; total: number }
|
|
27
|
+
}
|
|
28
|
+
/** update局部修改,replace完整替换,removeMany一次提交全部ID。 */
|
|
29
|
+
export interface CrudApi<
|
|
30
|
+
T extends Record<string, any> = Record<string, any>,
|
|
31
|
+
Create = Partial<T>,
|
|
32
|
+
Update = Partial<Create>,
|
|
33
|
+
Query extends ListQuery = ListQuery
|
|
34
|
+
> {
|
|
35
|
+
list: (query?: Query, config?: AxiosRequestConfig) => Promise<PageData<T>>
|
|
36
|
+
get: (id: string | number) => Promise<T>
|
|
37
|
+
create: (input: Create) => Promise<T>
|
|
38
|
+
update: (id: string | number, input: Update) => Promise<T>
|
|
39
|
+
replace: (id: string | number, input: Create) => Promise<T>
|
|
40
|
+
remove: (id: string | number) => Promise<void>
|
|
41
|
+
removeMany: (ids: (string | number)[]) => Promise<void>
|
|
42
|
+
}
|
|
43
|
+
export interface TableColumn<T = Record<string, any>> {
|
|
44
|
+
prop?: string
|
|
45
|
+
label?: string
|
|
46
|
+
type?: 'selection' | 'expand' | 'index' | 'globalIndex'
|
|
47
|
+
width?: string | number
|
|
48
|
+
minWidth?: string | number
|
|
49
|
+
fixed?: boolean | 'left' | 'right'
|
|
50
|
+
sortable?: boolean
|
|
51
|
+
visible?: boolean
|
|
52
|
+
useSlot?: boolean
|
|
53
|
+
formatter?: (row: T) => unknown
|
|
54
|
+
[key: string]: any
|
|
55
|
+
}
|
|
56
|
+
export interface Pagination {
|
|
57
|
+
current: number
|
|
58
|
+
size: number
|
|
59
|
+
total: number
|
|
60
|
+
}
|
|
61
|
+
export const ArtTable: DefineComponent<
|
|
62
|
+
Partial<TableProps<Record<string, any>>> & {
|
|
63
|
+
columns?: TableColumn<any>[]
|
|
64
|
+
pagination?: Readonly<Pagination>
|
|
65
|
+
loading?: boolean
|
|
66
|
+
}
|
|
67
|
+
>
|
|
68
|
+
export const ArtTableHeader: DefineComponent<{
|
|
69
|
+
columns?: TableColumn<any>[]
|
|
70
|
+
loading?: boolean
|
|
71
|
+
layout?: string
|
|
72
|
+
showSearchBar?: boolean
|
|
73
|
+
}>
|
|
74
|
+
export const DawnSearchBar: DefineComponent<{
|
|
75
|
+
modelValue?: Record<string, any>
|
|
76
|
+
showExpand?: boolean
|
|
77
|
+
labelWidth?: string
|
|
78
|
+
gutter?: number
|
|
79
|
+
}>
|
|
80
|
+
export const DawnButton: DefineComponent<{
|
|
81
|
+
type?: 'primary' | 'secondary' | 'error' | 'info' | 'success'
|
|
82
|
+
icon?: string
|
|
83
|
+
toolTip?: string
|
|
84
|
+
}>
|
|
85
|
+
export const DawnImport: DefineComponent<{
|
|
86
|
+
downloadUrl: string
|
|
87
|
+
uploadUrl: string
|
|
88
|
+
accept?: string
|
|
89
|
+
}>
|
|
90
|
+
export const DawnExport: DefineComponent<{ url: string; method?: string; fileName?: string }>
|
|
91
|
+
export function useAuth(): { hasAuth: (key: string) => boolean }
|
|
92
|
+
export function dateLabel(value: number): string
|
|
93
|
+
export function useAdmin(): {
|
|
94
|
+
dialogType: Ref<string>
|
|
95
|
+
dialogVisible: Ref<boolean>
|
|
96
|
+
dialogData: Ref<Record<string, any>>
|
|
97
|
+
selectedRows: Ref<Record<string, any>[]>
|
|
98
|
+
showDialog: (type: string, row?: Record<string, any>) => void
|
|
99
|
+
hideDialog: () => void
|
|
100
|
+
handleSelectionChange: (rows: Record<string, any>[]) => void
|
|
101
|
+
deleteRow: (
|
|
102
|
+
row: Record<string, any>,
|
|
103
|
+
apiFn: (params: any) => Promise<any>,
|
|
104
|
+
callback?: () => void
|
|
105
|
+
) => void
|
|
106
|
+
deleteSelectedRows: (
|
|
107
|
+
apiFn: (params: any) => Promise<any>,
|
|
108
|
+
callback?: () => void
|
|
109
|
+
) => void
|
|
110
|
+
}
|
|
111
|
+
export function useTable<T = Record<string, any>>(config: {
|
|
112
|
+
core: {
|
|
113
|
+
apiFn: (params: any, config?: AxiosRequestConfig) => Promise<PageData<T>>
|
|
114
|
+
columnsFactory: () => TableColumn<T>[]
|
|
115
|
+
apiParams?: Record<string, any>
|
|
116
|
+
immediate?: boolean
|
|
117
|
+
}
|
|
118
|
+
hooks?: {
|
|
119
|
+
resetFormCallback?: () => void
|
|
120
|
+
onSuccess?: (data: T[], response: any) => void
|
|
121
|
+
onError?: (error: any) => void
|
|
122
|
+
}
|
|
123
|
+
performance?: { enableCache?: boolean; cacheTime?: number; debounceTime?: number }
|
|
124
|
+
}): {
|
|
125
|
+
data: Ref<T[]>
|
|
126
|
+
loading: Readonly<Ref<boolean>>
|
|
127
|
+
columns: ComputedRef<TableColumn<T>[]>
|
|
128
|
+
columnChecks: Ref<TableColumn<T>[]>
|
|
129
|
+
searchParams: Record<string, any>
|
|
130
|
+
pagination: Readonly<Pagination>
|
|
131
|
+
getData: (params?: any) => Promise<any>
|
|
132
|
+
getDataDebounced: (params?: any) => Promise<any>
|
|
133
|
+
cancelRequest: () => void
|
|
134
|
+
resetSearchParams: () => void
|
|
135
|
+
refreshData: () => Promise<any>
|
|
136
|
+
refreshCreate: () => Promise<any>
|
|
137
|
+
refreshUpdate: () => Promise<any>
|
|
138
|
+
refreshRemove: () => Promise<any>
|
|
139
|
+
handleSortChange: (sort: { prop: string; order: string | null }) => void
|
|
140
|
+
handleSizeChange: (size: number) => void
|
|
141
|
+
handleCurrentChange: (page: number) => void
|
|
142
|
+
}
|