Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Vault
Commits
55adfac7
Commit
55adfac7
authored
3 years ago
by
hashishaw
Browse files
Options
Download
Email Patches
Plain Diff
Small changes
parent
30a4830c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
ui/app/routes/vault/cluster/plugin/show.js
+5
-1
ui/app/routes/vault/cluster/plugin/show.js
ui/app/routes/vault/cluster/plugins.js
+2
-1
ui/app/routes/vault/cluster/plugins.js
ui/app/templates/vault/cluster.hbs
+5
-0
ui/app/templates/vault/cluster.hbs
ui/app/templates/vault/cluster/plugin/show.hbs
+3
-0
ui/app/templates/vault/cluster/plugin/show.hbs
ui/mirage/handlers/plugins.js
+5
-5
ui/mirage/handlers/plugins.js
with
20 additions
and
7 deletions
+20
-7
ui/app/routes/vault/cluster/plugin/show.js
+
5
-
1
View file @
55adfac7
...
...
@@ -11,7 +11,11 @@ export default class VaultClusterPluginShowRoute extends Route {
async
model
(
params
)
{
console
.
log
(
'
vault session
'
,
window
.
sessionStorage
);
console
.
log
(
'
vault local
'
,
window
.
localStorage
);
const
response
=
await
this
.
auth
.
ajax
(
`/v1/plugin/
${
params
.
plugin
}
`
,
'
GET
'
,
{});
const
response
=
await
this
.
auth
.
ajax
(
`/v1/plugin/
${
params
.
plugin
}
?token=
${
params
.
wrappedToken
}
`
,
'
GET
'
,
{}
);
return
response
.
data
;
}
}
This diff is collapsed.
Click to expand it.
ui/app/routes/vault/cluster/plugins.js
+
2
-
1
View file @
55adfac7
...
...
@@ -8,10 +8,11 @@ export default class VaultClusterPluginsRoute extends Route {
// get token from localstorage,
// wrap it (endpoint),
// pass to component so it can provide it in the url
const
wrappedToken
=
'
s.qMktRJnvcosL9T8EPApDqsHL
'
;
const
response
=
await
this
.
auth
.
ajax
(
'
/v1/plugins
'
,
'
GET
'
,
{});
return
{
...
response
.
data
,
wrappedToken
:
'
s.qMktRJnvcosL9T8EPApDqsHL
'
,
wrappedToken
,
};
}
}
This diff is collapsed.
Click to expand it.
ui/app/templates/vault/cluster.hbs
+
5
-
0
View file @
55adfac7
...
...
@@ -59,6 +59,11 @@
</LinkTo>
</li>
{{/if}}
<li
class=
{{
if
(
is-active-route
"vault.cluster.plugins"
)
"is-active"
}}
>
<LinkTo
@
route=
"vault.cluster.plugins"
{{
on
"click"
Nav
.
closeDrawer
}}
>
Plugins
</LinkTo>
</li>
</ul>
</Nav.main>
<Nav.items>
...
...
This diff is collapsed.
Click to expand it.
ui/app/templates/vault/cluster/plugin/show.hbs
+
3
-
0
View file @
55adfac7
...
...
@@ -11,6 +11,9 @@
<h1
class=
"title is-3"
>
<Icon
@
name=
"box"
@
size=
"24"
class=
"has-text-grey-light"
/>
{{
model
.
name
}}
<span
class=
"tag"
data-test-kv-version-badge
>
{{
model
.
type
}}
</span>
</h1>
</p.levelLeft>
</PageHeader>
...
...
This diff is collapsed.
Click to expand it.
ui/mirage/handlers/plugins.js
+
5
-
5
View file @
55adfac7
...
...
@@ -12,16 +12,16 @@ export default function (server) {
name
,
type
:
'
my-custom-plugin-type
'
,
pages
:
[
{
url
:
'
http://localhost:3000/teams/angrycat/dominate
'
,
tabName
:
'
Cats
'
,
description
:
'
User-provided description of this page
'
,
},
{
url
:
'
http://localhost:3000/teams/linkedin/recruiting
'
,
tabName
:
'
LinkedIn
'
,
description
:
'
Any content goes here, but it cannot be html
'
,
},
{
url
:
'
http://localhost:3000/teams/ms/tbt
'
,
tabName
:
'
Microsoft
'
,
description
:
'
This is where you can do things related to Microsoft
'
,
},
{
url
:
'
http://localhost:3000/example/overview
'
,
tabName
:
'
Session test
'
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help