Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

add api tokens to magic bar

Andras Bacsaie2a256b31c69
diff --git a/resources/js/components/MagicBar.vue b/resources/js/components/MagicBar.vue
index 3ccac78b76..56d2442507 100644
--- a/resources/js/components/MagicBar.vue
+++ b/resources/js/components/MagicBar.vue
@@ -1,6 +1,6 @@
<template>
<Transition name="fade">
- <div >
+ <div>
<div class="flex items-center p-1 px-2 overflow-hidden transition-all transform rounded cursor-pointer bg-coolgray-200"
@click="showCommandPalette = true">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 icon" viewBox="0 0 24 24" stroke-width="2"
@@ -54,11 +54,12 @@
sequenceState.sequence[sequenceState.currentActionIndex] }}</span> name
will be:
<span class="inline-block text-warning">{{ search }}</span>
- </span>
+ </span>
<span v-else><span class="capitalize ">{{
sequenceState.sequence[sequenceState.currentActionIndex] }}</span> name
will be:
- <span class="inline-block text-warning">randomly generated (type to change)</span>
+ <span class="inline-block text-warning">randomly generated (type to
+ change)</span>
</span>
</span>
</li>
@@ -414,6 +415,13 @@ const magicActions = [{
name: 'Goto: Boarding process',
icon: 'goto',
sequence: ['main', 'redirect']
+},
+{
+ id: 24,
+ name: 'Goto: API Tokens',
+ tags: 'api,tokens,rest',
+ icon: 'goto',
+ sequence: ['main', 'redirect']
}
]
const initialState = {
@@ -644,6 +652,9 @@ async function redirect() {
case 23:
targetUrl.pathname = `/boarding`
break;
+ case 24:
+ targetUrl.pathname = `/security/api-tokens`
+ break;
}
window.location.href = targetUrl;
}