Skip to content

Commit

Permalink
feat: add cache form page
Browse files Browse the repository at this point in the history
  • Loading branch information
Adelino Ngomacha committed Jun 13, 2024
1 parent e0d0134 commit 14c5154
Show file tree
Hide file tree
Showing 7 changed files with 239 additions and 492 deletions.
3 changes: 0 additions & 3 deletions libs/components/Dashboard/Settings/Forms/AppForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
</div>
</div>



<div class="sm:col-span-3">
<label for="env" class="block text-sm font-medium leading-6 text-gray-900">Redirect Urls</label>
<div class="mt-2">
Expand Down Expand Up @@ -129,7 +127,6 @@
<input id="cipher" type="text" name="cipher" placeholder="AES-256-CBC" value="aes-256-cbc" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6">
</div>
</div>

</div>
</div>
</div>
Expand Down
449 changes: 231 additions & 218 deletions libs/components/Dashboard/Settings/Forms/CacheForm.vue

Large diffs are not rendered by default.

14 changes: 5 additions & 9 deletions libs/components/Dashboard/Settings/SettingsFormManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import AIForm from './Forms/AIForm.vue'
import AnalyticsForm from './Forms/AnalyticsForm.vue'
import AppForm from './Forms/AppForm.vue'
import CacheForm from './Forms/CacheForm.vue'
const props = defineProps({
name: String,
Expand Down Expand Up @@ -111,15 +112,10 @@ const pageTitle = computed < String > (() => options.find(option => option.key =
</p>

<div class="mt-10">
<template v-if="name === 'ai'">
<AIForm />
</template>
<template v-else-if="name === 'analytics'">
<AnalyticsForm />
</template>
<template v-else-if="name === 'app'">
<AppForm />
</template>
<template v-if="name === 'ai'"><AIForm /></template>
<template v-else-if="name === 'analytics'"><AnalyticsForm /></template>
<template v-else-if="name === 'app'"><AppForm /></template>
<template v-else-if="name === 'cache'"><CacheForm /></template>
<template v-else>
<div class="text-center">
<div class="i-heroicons-cog-8-tooth text-gray-400 w-12 h-12 dark:text-gray-200 transition-all duration-150 ease-in-out" />
Expand Down
2 changes: 1 addition & 1 deletion libs/components/Dashboard/SettingsSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<li>
<RouterLink to="cache" class="sidebar-links group flex items-center justify-between">
<div class="flex items-center gap-x-2">
<div class="i-heroicons-square-3-stack-3d text-gray-500 w-5 h-5 dark:text-gray-200 group-hover:text-gray-700 transition duration-150 ease-in-out" />
<div class="i-heroicons-server text-gray-500 w-5 h-5 dark:text-gray-200 group-hover:text-gray-700 transition duration-150 ease-in-out" />
Cache
</div>
<div class="i-heroicons-chevron-right text-gray-500 w-5 h-5 dark:text-gray-200 group-hover:text-gray-700 transition duration-150 ease-in-out self-end" />
Expand Down
260 changes: 0 additions & 260 deletions resources/views/dashboard/settings/cache.vue

This file was deleted.

2 changes: 2 additions & 0 deletions storage/framework/types/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ declare module 'vue' {
ActivityFeed: typeof import('./../../../libs/components/Dashboard/Deployments/ActivityFeed.vue')['default']
AIForm: typeof import('./../../../libs/components/Dashboard/Settings/Forms/AIForm.vue')['default']
Alert: typeof import('./../../../libs/components/Dashboard/Modals/Popups/Alert.vue')['default']
AnalyticsForm: typeof import('./../../../libs/components/Dashboard/Settings/Forms/AnalyticsForm.vue')['default']
AppButton: typeof import('./../../../libs/components/Dashboard/Buttons/AppButton.vue')['default']
AppForm: typeof import('./../../../libs/components/Dashboard/Settings/Forms/AppForm.vue')['default']
BaseModal: typeof import('./../../../libs/components/Dashboard/Modals/BaseModal.vue')['default']
Button: typeof import('./../../../libs/components/Button.vue')['default']
CacheForm: typeof import('./../../../libs/components/Dashboard/Settings/Forms/CacheForm.vue')['default']
Expand Down
1 change: 0 additions & 1 deletion storage/framework/types/dashboard-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ declare module 'vue-router/auto-routes' {
'/requests/': RouteRecordInfo<'/requests/', '/requests', Record<never, never>, Record<never, never>>,
'/settings/[name]': RouteRecordInfo<'/settings/[name]', '/settings/:name', { name: ParamValue<true> }, { name: ParamValue<false> }>,
'/settings/billing': RouteRecordInfo<'/settings/billing', '/settings/billing', Record<never, never>, Record<never, never>>,
'/settings/cache': RouteRecordInfo<'/settings/cache', '/settings/cache', Record<never, never>, Record<never, never>>,
'/settings/database': RouteRecordInfo<'/settings/database', '/settings/database', Record<never, never>, Record<never, never>>,
'/settings/mail': RouteRecordInfo<'/settings/mail', '/settings/mail', Record<never, never>, Record<never, never>>,
'/settings/queue': RouteRecordInfo<'/settings/queue', '/settings/queue', Record<never, never>, Record<never, never>>,
Expand Down

0 comments on commit 14c5154

Please sign in to comment.