archsight 0.3.2 → 0.3.3
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.
- checksums.yaml +4 -4
- data/docs/icons.md +26 -0
- data/docs/index.md.erb +17 -0
- data/docs/modeling.md +147 -2
- data/docs/togaf.md +4 -1
- data/lib/archsight/annotations/asset_annotations.rb +34 -0
- data/lib/archsight/annotations/risk_annotations.rb +21 -0
- data/lib/archsight/documentation.rb +3 -2
- data/lib/archsight/linter.rb +104 -0
- data/lib/archsight/resources/application_component.rb +8 -1
- data/lib/archsight/resources/application_event.rb +79 -0
- data/lib/archsight/resources/application_service.rb +6 -1
- data/lib/archsight/resources/business_actor.rb +9 -1
- data/lib/archsight/resources/business_control.rb +10 -2
- data/lib/archsight/resources/business_event.rb +79 -0
- data/lib/archsight/resources/business_process.rb +8 -1
- data/lib/archsight/resources/business_role.rb +69 -0
- data/lib/archsight/resources/compliance_evidence.rb +8 -2
- data/lib/archsight/resources/data_object.rb +6 -1
- data/lib/archsight/resources/implementation_deliverable.rb +62 -0
- data/lib/archsight/resources/implementation_event.rb +52 -0
- data/lib/archsight/resources/implementation_gap.rb +49 -0
- data/lib/archsight/resources/implementation_plateau.rb +61 -0
- data/lib/archsight/resources/implementation_work_package.rb +83 -0
- data/lib/archsight/resources/motivation_assessment.rb +121 -0
- data/lib/archsight/resources/motivation_constraint.rb +7 -1
- data/lib/archsight/resources/motivation_driver.rb +50 -0
- data/lib/archsight/resources/motivation_goal.rb +13 -1
- data/lib/archsight/resources/motivation_principle.rb +75 -0
- data/lib/archsight/resources/motivation_requirement.rb +12 -2
- data/lib/archsight/resources/motivation_stakeholder.rb +7 -0
- data/lib/archsight/resources/page.rb +5 -0
- data/lib/archsight/resources/technology_event.rb +80 -0
- data/lib/archsight/resources/technology_node.rb +7 -1
- data/lib/archsight/version.rb +1 -1
- data/lib/archsight/web/public/vue/{ApiDocsPage-DoOxKjG0.js → ApiDocsPage-BgqnQgwa.js} +1 -1
- data/lib/archsight/web/public/vue/{DocPage-CfsC3CeQ.js → DocPage-CNO71nBH.js} +1 -1
- data/lib/archsight/web/public/vue/{EditorPage-CsJA0q8n.js → EditorPage-DR0FCNTz.js} +1 -1
- data/lib/archsight/web/public/vue/{ErrorPage-OJpJz9df.js → ErrorPage-BfYArv6s.js} +1 -1
- data/lib/archsight/web/public/vue/{GraphView-CBq6oFRV.js → GraphView-BVTW30Ak.js} +1 -1
- data/lib/archsight/web/public/vue/HomePage-Wk9P4Pma.js +2 -0
- data/lib/archsight/web/public/vue/{InstanceRouter-DQz-SsQq.js → InstanceRouter-BV8ycydz.js} +1 -1
- data/lib/archsight/web/public/vue/{KindList-4q0K9Cll.js → KindList-C8yMsN5J.js} +1 -1
- data/lib/archsight/web/public/vue/{PageView-DzeGnvoS.js → PageView-BaN6TyJB.js} +1 -1
- data/lib/archsight/web/public/vue/{QueryError-kg6Yf-pW.js → QueryError-D790wH-a.js} +1 -1
- data/lib/archsight/web/public/vue/{ResourceList-Df_0e0qt.js → ResourceList-D-66nas2.js} +1 -1
- data/lib/archsight/web/public/vue/{SearchResults-CyPUZZSC.css → SearchResults-BewvsfOc.css} +1 -1
- data/lib/archsight/web/public/vue/SearchResults-CHyqIerQ.js +1 -0
- data/lib/archsight/web/public/vue/{WikiPage-DrvCHwJ7.js → WikiPage-D2svpk6B.js} +1 -1
- data/lib/archsight/web/public/vue/{index-D0Q5GZRs.js → index-BXXkUK1V.js} +2 -2
- data/lib/archsight/web/public/vue/{index-oF-iyZvk.css → index-Cov1SnzY.css} +1 -1
- data/lib/archsight/web/public/vue/{useGraphviz-DweKV7Kg.js → useGraphviz-DlSnFeCL.js} +12 -0
- data/lib/archsight/web/public/vue.html +2 -2
- metadata +32 -18
- data/lib/archsight/web/public/vue/HomePage-BwgMLgVC.js +0 -2
- data/lib/archsight/web/public/vue/SearchResults-CKgY6_wH.js +0 -1
|
@@ -38,6 +38,12 @@ import{M as e}from"./mermaid-BjEi5URd.js";var t=`/* ===== Global Styles ===== */
|
|
|
38
38
|
fill: #8AC926 !important;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/* Implementation & Migration Layer - Rose */
|
|
42
|
+
.layer-implementation path[fill="lightgrey"] {
|
|
43
|
+
stroke: #F48FB1 !important;
|
|
44
|
+
fill: #F48FB1 !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
/* Motivation Layer - Purple */
|
|
42
48
|
.layer-motivation path[fill="lightgrey"] {
|
|
43
49
|
stroke: #CE93D8 !important;
|
|
@@ -93,6 +99,12 @@ import{M as e}from"./mermaid-BjEi5URd.js";var t=`/* ===== Global Styles ===== */
|
|
|
93
99
|
fill: #6A9916 !important;
|
|
94
100
|
}
|
|
95
101
|
|
|
102
|
+
/* Implementation & Migration Layer - Rose */
|
|
103
|
+
.layer-implementation path[fill="lightgrey"] {
|
|
104
|
+
stroke: #F06292 !important;
|
|
105
|
+
fill: #AD1457 !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
96
108
|
/* Motivation Layer */
|
|
97
109
|
.layer-motivation path[fill="lightgrey"] {
|
|
98
110
|
stroke: #AB47BC !important;
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>IONOS Architecture</title>
|
|
7
7
|
<link rel="icon" href="/favicon.ico" />
|
|
8
|
-
<script type="module" crossorigin src="/vue/index-
|
|
8
|
+
<script type="module" crossorigin src="/vue/index-BXXkUK1V.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/vue/useHighlight-D5Gf8DLl.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/vue/mermaid-BjEi5URd.js">
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/vue/index-
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/vue/index-Cov1SnzY.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="app"></div>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: archsight
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vincent Landgraf
|
|
@@ -249,6 +249,7 @@ files:
|
|
|
249
249
|
- lib/archsight/annotations/aggregators.rb
|
|
250
250
|
- lib/archsight/annotations/annotation.rb
|
|
251
251
|
- lib/archsight/annotations/architecture_annotations.rb
|
|
252
|
+
- lib/archsight/annotations/asset_annotations.rb
|
|
252
253
|
- lib/archsight/annotations/backup_annotations.rb
|
|
253
254
|
- lib/archsight/annotations/computed.rb
|
|
254
255
|
- lib/archsight/annotations/email_recipient.rb
|
|
@@ -257,6 +258,7 @@ files:
|
|
|
257
258
|
- lib/archsight/annotations/interface_annotations.rb
|
|
258
259
|
- lib/archsight/annotations/person.rb
|
|
259
260
|
- lib/archsight/annotations/relation_resolver.rb
|
|
261
|
+
- lib/archsight/annotations/risk_annotations.rb
|
|
260
262
|
- lib/archsight/assets.rb
|
|
261
263
|
- lib/archsight/cli.rb
|
|
262
264
|
- lib/archsight/configuration.rb
|
|
@@ -419,25 +421,37 @@ files:
|
|
|
419
421
|
- lib/archsight/resources.rb
|
|
420
422
|
- lib/archsight/resources/analysis.rb
|
|
421
423
|
- lib/archsight/resources/application_component.rb
|
|
424
|
+
- lib/archsight/resources/application_event.rb
|
|
422
425
|
- lib/archsight/resources/application_interface.rb
|
|
423
426
|
- lib/archsight/resources/application_service.rb
|
|
424
427
|
- lib/archsight/resources/base.rb
|
|
425
428
|
- lib/archsight/resources/business_actor.rb
|
|
426
429
|
- lib/archsight/resources/business_control.rb
|
|
430
|
+
- lib/archsight/resources/business_event.rb
|
|
427
431
|
- lib/archsight/resources/business_process.rb
|
|
428
432
|
- lib/archsight/resources/business_product.rb
|
|
433
|
+
- lib/archsight/resources/business_role.rb
|
|
429
434
|
- lib/archsight/resources/compliance_evidence.rb
|
|
430
435
|
- lib/archsight/resources/data_object.rb
|
|
436
|
+
- lib/archsight/resources/implementation_deliverable.rb
|
|
437
|
+
- lib/archsight/resources/implementation_event.rb
|
|
438
|
+
- lib/archsight/resources/implementation_gap.rb
|
|
439
|
+
- lib/archsight/resources/implementation_plateau.rb
|
|
440
|
+
- lib/archsight/resources/implementation_work_package.rb
|
|
431
441
|
- lib/archsight/resources/import.rb
|
|
442
|
+
- lib/archsight/resources/motivation_assessment.rb
|
|
432
443
|
- lib/archsight/resources/motivation_constraint.rb
|
|
444
|
+
- lib/archsight/resources/motivation_driver.rb
|
|
433
445
|
- lib/archsight/resources/motivation_goal.rb
|
|
434
446
|
- lib/archsight/resources/motivation_outcome.rb
|
|
447
|
+
- lib/archsight/resources/motivation_principle.rb
|
|
435
448
|
- lib/archsight/resources/motivation_requirement.rb
|
|
436
449
|
- lib/archsight/resources/motivation_stakeholder.rb
|
|
437
450
|
- lib/archsight/resources/page.rb
|
|
438
451
|
- lib/archsight/resources/page_menu.rb
|
|
439
452
|
- lib/archsight/resources/strategy_capability.rb
|
|
440
453
|
- lib/archsight/resources/technology_artifact.rb
|
|
454
|
+
- lib/archsight/resources/technology_event.rb
|
|
441
455
|
- lib/archsight/resources/technology_interface.rb
|
|
442
456
|
- lib/archsight/resources/technology_node.rb
|
|
443
457
|
- lib/archsight/resources/technology_service.rb
|
|
@@ -2843,35 +2857,35 @@ files:
|
|
|
2843
2857
|
- lib/archsight/web/public/vendor/drawio/viewer-static.min.js
|
|
2844
2858
|
- lib/archsight/web/public/vendor/drawio/viewer.html
|
|
2845
2859
|
- lib/archsight/web/public/vue.html
|
|
2860
|
+
- lib/archsight/web/public/vue/ApiDocsPage-BgqnQgwa.js
|
|
2846
2861
|
- lib/archsight/web/public/vue/ApiDocsPage-DZ0fa5-h.css
|
|
2847
|
-
- lib/archsight/web/public/vue/
|
|
2848
|
-
- lib/archsight/web/public/vue/DocPage-CfsC3CeQ.js
|
|
2862
|
+
- lib/archsight/web/public/vue/DocPage-CNO71nBH.js
|
|
2849
2863
|
- lib/archsight/web/public/vue/EditorPage-CbG4mc9T.css
|
|
2850
|
-
- lib/archsight/web/public/vue/EditorPage-
|
|
2864
|
+
- lib/archsight/web/public/vue/EditorPage-DR0FCNTz.js
|
|
2865
|
+
- lib/archsight/web/public/vue/ErrorPage-BfYArv6s.js
|
|
2851
2866
|
- lib/archsight/web/public/vue/ErrorPage-Ck9izEUS.css
|
|
2852
|
-
- lib/archsight/web/public/vue/
|
|
2867
|
+
- lib/archsight/web/public/vue/GraphView-BVTW30Ak.js
|
|
2853
2868
|
- lib/archsight/web/public/vue/GraphView-BvWAbUAl.css
|
|
2854
|
-
- lib/archsight/web/public/vue/
|
|
2855
|
-
- lib/archsight/web/public/vue/
|
|
2856
|
-
- lib/archsight/web/public/vue/InstanceRouter-DQz-SsQq.js
|
|
2869
|
+
- lib/archsight/web/public/vue/HomePage-Wk9P4Pma.js
|
|
2870
|
+
- lib/archsight/web/public/vue/InstanceRouter-BV8ycydz.js
|
|
2857
2871
|
- lib/archsight/web/public/vue/InstanceRouter-jeavM6PW.css
|
|
2858
|
-
- lib/archsight/web/public/vue/KindList-
|
|
2859
|
-
- lib/archsight/web/public/vue/PageView-
|
|
2872
|
+
- lib/archsight/web/public/vue/KindList-C8yMsN5J.js
|
|
2873
|
+
- lib/archsight/web/public/vue/PageView-BaN6TyJB.js
|
|
2860
2874
|
- lib/archsight/web/public/vue/QueryError-3EqjpbyV.css
|
|
2861
|
-
- lib/archsight/web/public/vue/QueryError-
|
|
2875
|
+
- lib/archsight/web/public/vue/QueryError-D790wH-a.js
|
|
2862
2876
|
- lib/archsight/web/public/vue/ResourceList-B0FLaFR3.css
|
|
2863
|
-
- lib/archsight/web/public/vue/ResourceList-
|
|
2864
|
-
- lib/archsight/web/public/vue/SearchResults-
|
|
2865
|
-
- lib/archsight/web/public/vue/SearchResults-
|
|
2877
|
+
- lib/archsight/web/public/vue/ResourceList-D-66nas2.js
|
|
2878
|
+
- lib/archsight/web/public/vue/SearchResults-BewvsfOc.css
|
|
2879
|
+
- lib/archsight/web/public/vue/SearchResults-CHyqIerQ.js
|
|
2880
|
+
- lib/archsight/web/public/vue/WikiPage-D2svpk6B.js
|
|
2866
2881
|
- lib/archsight/web/public/vue/WikiPage-DoFJ0dbW.css
|
|
2867
|
-
- lib/archsight/web/public/vue/WikiPage-DrvCHwJ7.js
|
|
2868
2882
|
- lib/archsight/web/public/vue/architecture-7GRP2DOG-BfA1TPxQ.js
|
|
2869
2883
|
- lib/archsight/web/public/vue/cynefin-OW5HDTMX-BmgdUKVD.js
|
|
2870
2884
|
- lib/archsight/web/public/vue/eventmodeling-NTZA5JFV-DbXDvAWF.js
|
|
2871
2885
|
- lib/archsight/web/public/vue/gitGraph-4MIJSDKK-BkVhrKS1.js
|
|
2872
2886
|
- lib/archsight/web/public/vue/graphviz-SXWTgZH5.js
|
|
2873
|
-
- lib/archsight/web/public/vue/index-
|
|
2874
|
-
- lib/archsight/web/public/vue/index-
|
|
2887
|
+
- lib/archsight/web/public/vue/index-BXXkUK1V.js
|
|
2888
|
+
- lib/archsight/web/public/vue/index-Cov1SnzY.css
|
|
2875
2889
|
- lib/archsight/web/public/vue/info-A6RAGUB7-BIlCVuUY.js
|
|
2876
2890
|
- lib/archsight/web/public/vue/katex-CXMH3UgJ.js
|
|
2877
2891
|
- lib/archsight/web/public/vue/mermaid-BjEi5URd.js
|
|
@@ -2884,7 +2898,7 @@ files:
|
|
|
2884
2898
|
- lib/archsight/web/public/vue/railroad-peg-WCYAUIDC-DFy_rqAj.js
|
|
2885
2899
|
- lib/archsight/web/public/vue/treeView-Q6P3EWNA-2cq5CyD2.js
|
|
2886
2900
|
- lib/archsight/web/public/vue/treemap-WGGIJYW6-DK-e9Ez4.js
|
|
2887
|
-
- lib/archsight/web/public/vue/useGraphviz-
|
|
2901
|
+
- lib/archsight/web/public/vue/useGraphviz-DlSnFeCL.js
|
|
2888
2902
|
- lib/archsight/web/public/vue/useHighlight-D5Gf8DLl.js
|
|
2889
2903
|
- lib/archsight/web/public/vue/wardley-WFR3VGLG-BQwqUqfB.js
|
|
2890
2904
|
- media/artifact.jpg
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["vue/GraphView-CBq6oFRV.js","vue/index-D0Q5GZRs.js","vue/mermaid-BjEi5URd.js","vue/useHighlight-D5Gf8DLl.js","vue/index-oF-iyZvk.css","vue/useGraphviz-DweKV7Kg.js","vue/WikiPage-DrvCHwJ7.js","vue/ResourceList-Df_0e0qt.js","vue/ResourceList-B0FLaFR3.css","vue/QueryError-kg6Yf-pW.js","vue/QueryError-3EqjpbyV.css","vue/WikiPage-DoFJ0dbW.css","vue/GraphView-BvWAbUAl.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{M as e}from"./mermaid-BjEi5URd.js";import{A as t,H as n,I as r,L as i,M as a,O as o,X as s,k as c}from"./index-D0Q5GZRs.js";import{n as l}from"./PageView-DzeGnvoS.js";var u={key:2},d={__name:`HomePage`,setup(d){let f=r(()=>e(()=>import(`./GraphView-CBq6oFRV.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),p=i(`pages`,null),m=i(`pageHome`,null),h=o(()=>p?.value!=null),g=o(()=>m?.value);return(e,r)=>g.value?(n(),t(l,{key:0,name:g.value.name},null,8,[`name`])):h.value?(n(),t(s(f),{key:1})):(n(),a(`article`,u,[...r[0]||=[c(`p`,null,`Loading...`,-1)]]))}};export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,E as n,F as r,G as i,H as a,K as o,L as s,M as c,O as l,P as u,U as d,Y as f,Z as p,b as m,j as h,k as g,n as _,q as v,r as y,t as b,y as x}from"./index-D0Q5GZRs.js";import{t as S}from"./ResourceList-Df_0e0qt.js";import{t as C}from"./QueryError-kg6Yf-pW.js";var w={class:`kind-facets`,"aria-label":`Filter by kind`},T={class:`facet-count`},E={class:`facet-count`},D=b({__name:`KindFacets`,props:{byKind:{type:Object,default:()=>({})},selected:{type:String,default:null}},setup(o){let f=o,h=[`strategy`,`motivation`,`business`,`application`,`technology`,`other`],_=m(),y=s(`kinds`,null),b=l(()=>Object.fromEntries((y?.value?.kinds||[]).map(e=>[e.kind,e.layer]))),x=l(()=>Object.entries(f.byKind).map(([e,t])=>({kind:e,count:t,layer:h.includes(b.value[e])?b.value[e]:`other`})).sort((e,t)=>h.indexOf(e.layer)-h.indexOf(t.layer)||e.kind.localeCompare(t.kind))),S=l(()=>x.value.reduce((e,t)=>e+t.count,0));function C(e){let t={..._.query};return e?t.kind=e:delete t.kind,{name:`search`,query:t}}return(s,l)=>{let f=i(`router-link`);return a(),c(`nav`,w,[r(f,{class:p([`facet facet-all`,{selected:!o.selected}]),to:C(null),"aria-current":o.selected?void 0:`true`},{default:v(()=>[l[0]||=u(` All `,-1),g(`span`,T,e(S.value),1)]),_:1},8,[`class`,`to`,`aria-current`]),(a(!0),c(n,null,d(x.value,n=>(a(),t(f,{key:n.kind,class:p([`facet`,[`icon-${n.layer}`,{selected:o.selected===n.kind}]]),to:C(n.kind),"aria-current":o.selected===n.kind?`true`:void 0},{default:v(()=>[l[1]||=g(`span`,{class:`facet-dot`,"aria-hidden":`true`},null,-1),u(` `+e(n.kind)+` `,1),g(`span`,E,e(n.count),1)]),_:2},1032,[`class`,`to`,`aria-current`]))),128))])}}},[[`__scopeId`,`data-v-c963b199`]]),O={key:0,class:`search-hints`},k={class:`hint-lead`},A={class:`hint-examples`},j={class:`hint-note`},M={key:1,class:`search-hints`},N={class:`hint-lead`},P={class:`hint-tips`},F={key:0},I={key:1},L=b({__name:`SearchHints`,props:{mode:{type:String,required:!0},query:{type:String,default:``},scope:{type:String,default:`kinds`}},setup(t){let o=t,f=s(`pages`,null),p=l(()=>!!f?.value?.length),m={kinds:[{query:`kubernetes`,note:`names that contain a word`},{query:`TechnologyArtifact: activity/status == "active"`,note:`active repositories`},{query:`MotivationRequirement: requirement/priority == "must"`,note:`requirements that must be met`},{query:`-> ApplicationInterface`,note:`resources that use an interface`}],pages:[{query:`handbook`,note:`words in a page title, name or text`},{query:`page/status == "rfc"`,note:`pages in review`}]},_=l(()=>m[o.scope]||m.kinds),b=l(()=>o.scope===`pages`?`pages`:`resources`);function x(e){return{name:`search`,query:y(e.query,o.scope)}}return(o,s)=>{let l=i(`router-link`);return t.mode===`intro`?(a(),c(`section`,O,[g(`p`,k,`Search `+e(b.value)+` by name, or filter them with a query.`,1),g(`ul`,A,[(a(!0),c(n,null,d(_.value,t=>(a(),c(`li`,{key:t.query},[r(l,{to:x(t)},{default:v(()=>[g(`code`,null,e(t.query),1)]),_:2},1032,[`to`]),g(`span`,j,e(t.note),1)]))),128))]),g(`p`,null,[r(l,{to:`/doc/search`},{default:v(()=>[...s[0]||=[u(`Query syntax`,-1)]]),_:1})])])):(a(),c(`section`,M,[g(`p`,N,[u(`No `+e(b.value)+` match `,1),g(`code`,null,e(t.query),1),s[1]||=u(`.`,-1)]),g(`ul`,P,[s[2]||=g(`li`,null,`Check the spelling, or try a shorter word.`,-1),t.scope===`kinds`&&p.value?(a(),c(`li`,F,`Page texts are searched from the Pages tab.`)):h(``,!0),t.scope===`pages`?(a(),c(`li`,I,`Switch to the Kinds tab to search resources.`)):h(``,!0)]),g(`p`,null,[r(l,{to:`/doc/search`},{default:v(()=>[...s[3]||=[u(`Query syntax`,-1)]]),_:1})])]))}}},[[`__scopeId`,`data-v-c91e9485`]]),R={class:`search-page`},z={class:`sr-only`,role:`status`,"aria-live":`polite`},B={class:`header-actions`},V={key:2,class:`search-summary`},H={class:`search-meta`},U={key:0,class:`search-meta`},W={key:1,class:`more-error`},G=100,K=b({__name:`SearchResults`,setup(s){let d=m(),y=f([]),b=f(0),w=f({}),T=f(0),E=f(``),O=f(``),k=f(`kinds`),A=f(null),j=f(!1),M=f(!1),N=f(null),P=f(!1),F=0,I=0,K=l(()=>!!E.value),q=l(()=>Object.keys(w.value).length>1||!!A.value),J=l(()=>j.value||!!N.value),Y=l(()=>{let e=b.value===1?`result`:`results`;return A.value?`${b.value} ${e} in ${A.value}`:`${b.value} ${e}`});async function X(){let e=d.query.q;if(A.value=d.query.kind||null,k.value=d.query.scope===`pages`?`pages`:`kinds`,!e){I++,y.value=[],b.value=0,w.value={},E.value=``,O.value=``,N.value=null,j.value=!1;return}E.value=e,O.value=_(e,k.value);let t=++I;j.value=!0,N.value=null,P.value=!1;try{let e=await x(O.value,{limit:G,offset:0,output:`brief`,kind:A.value});if(t!==I)return;y.value=e.instances||[],b.value=e.total||0,w.value=e.by_kind||{},T.value=e.query_time_ms||0,F=y.value.length}catch(e){if(t!==I)return;N.value=e.message}finally{t===I&&(j.value=!1)}}async function Z(){if(M.value||F>=b.value||!E.value)return;M.value=!0,P.value=!1;let e=I;try{let t=await x(O.value,{limit:G,offset:F,output:`brief`,kind:A.value});if(e!==I)return;let n=t.instances||[];y.value=[...y.value,...n],F+=n.length}catch{P.value=!0}finally{M.value=!1}}return o(()=>[d.query.q,d.query.scope,d.query.kind],X,{immediate:!0}),(o,s)=>{let l=i(`router-link`);return a(),c(`article`,R,[g(`span`,z,e(j.value?`Searching`:``),1),g(`header`,null,[s[1]||=g(`h2`,null,[g(`i`,{class:`iconoir-search`,"aria-hidden":`true`}),u(` Search`)],-1),g(`div`,B,[r(l,{class:`search-syntax`,to:`/doc/search`,title:`Query syntax`},{default:v(()=>[...s[0]||=[g(`i`,{class:`iconoir-help-circle`,"aria-hidden":`true`},null,-1)]]),_:1})])]),K.value?(a(),c(n,{key:1},[q.value?(a(),t(D,{key:0,"by-kind":w.value,selected:A.value},null,8,[`by-kind`,`selected`])):h(``,!0),N.value?(a(),t(C,{key:1,message:N.value},null,8,[`message`])):h(``,!0),!N.value&&y.value.length?(a(),c(`p`,V,[u(e(Y.value)+` `,1),g(`span`,H,e(T.value)+` ms`,1),k.value===`pages`&&O.value!==E.value?(a(),c(`span`,U,[s[2]||=u(` searched as `,-1),g(`code`,null,e(O.value),1)])):h(``,!0)])):h(``,!0),g(`div`,{class:p({stale:J.value})},[y.value.length?(a(),t(S,{key:0,rows:``,instances:y.value,"omit-kind":!!A.value,"page-links":k.value===`pages`,total:b.value,"loading-more":M.value,onLoadMore:Z},null,8,[`instances`,`omit-kind`,`page-links`,`total`,`loading-more`])):h(``,!0),P.value?(a(),c(`p`,W,[s[3]||=u(` Could not load more results. `,-1),g(`button`,{type:`button`,class:`more-retry`,onClick:Z},`Try again`)])):h(``,!0)],2),!j.value&&!N.value&&!y.value.length?(a(),t(L,{key:3,mode:`empty`,query:E.value,scope:k.value},null,8,[`query`,`scope`])):h(``,!0)],64)):(a(),t(L,{key:0,mode:`intro`,scope:k.value},null,8,[`scope`]))])}}},[[`__scopeId`,`data-v-3a63d0fc`]]);export{K as default};
|