Skip to content

Commit 00a9bf8

Browse files
committed
feat: new screen when active license
1 parent 109db6e commit 00a9bf8

File tree

2 files changed

+217
-153
lines changed

2 files changed

+217
-153
lines changed

frontend/src/layouts/DefaultLayout.vue

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LICENSE-COMMERCIAL.md Source: https://github.com/kolapsis/maintenant -->
55

66
<script setup lang="ts">
77
import { RouterLink, RouterView, useRoute } from 'vue-router'
8-
import { ref, onMounted } from 'vue'
8+
import { onMounted, ref } from 'vue'
99
import AppHeader from '@/components/AppHeader.vue'
1010
import { useAppVersion } from '@/composables/useAppVersion'
1111
import { useEdition } from '@/composables/useEdition'
@@ -94,31 +94,32 @@ const mainNav = [
9494

9595
<!-- Bottom section: Edition -->
9696
<div class="p-4 border-t border-slate-800 space-y-3 shrink-0">
97-
<div class="bg-slate-800/40 rounded-xl p-3 border border-slate-700/40">
98-
<div class="flex justify-between items-center" :class="{ 'mb-2.5': !isEnterprise }">
99-
<span
100-
class="text-[10px] font-bold uppercase tracking-tighter"
101-
:class="isEnterprise ? 'text-emerald-400' : 'text-slate-400'"
102-
>{{ isEnterprise ? 'Pro Edition' : 'Community Edition' }}</span
103-
>
104-
<span
105-
class="text-[10px] px-1.5 py-0.5 rounded font-bold"
106-
:class="
107-
isEnterprise
108-
? 'bg-emerald-500/20 text-emerald-400 border border-emerald-500/30'
109-
: 'bg-pb-green-500/20 text-pb-green-400 border border-pb-green-500/30'
110-
"
111-
>{{ version }}</span
97+
<router-link :to="{ name: 'pro-edition' }">
98+
<div class="bg-slate-800/40 rounded-xl p-3 border border-slate-700/40">
99+
<div class="flex justify-between items-center" :class="{ 'mb-2.5': !isEnterprise }">
100+
<span
101+
class="text-[10px] font-bold uppercase tracking-tighter"
102+
:class="isEnterprise ? 'text-emerald-400' : 'text-slate-400'"
103+
>{{ isEnterprise ? 'Pro Edition' : 'Community Edition' }}</span
104+
>
105+
<span
106+
class="text-[10px] px-1.5 py-0.5 rounded font-bold"
107+
:class="
108+
isEnterprise
109+
? 'bg-emerald-500/20 text-emerald-400 border border-emerald-500/30'
110+
: 'bg-pb-green-500/20 text-pb-green-400 border border-pb-green-500/30'
111+
"
112+
>{{ version }}</span
113+
>
114+
</div>
115+
<button
116+
v-if="!isEnterprise"
117+
class="block w-full py-1.5 bg-slate-700/50 text-slate-300 hover:text-slate-200 rounded-lg text-xs font-semibold text-center transition-colors"
112118
>
119+
Pro Edition
120+
</button>
113121
</div>
114-
<router-link
115-
v-if="!isEnterprise"
116-
:to="{ name: 'pro-edition' }"
117-
class="block w-full py-1.5 bg-slate-700/50 text-slate-300 hover:text-slate-200 rounded-lg text-xs font-semibold text-center transition-colors"
118-
>
119-
Pro Edition
120-
</router-link>
121-
</div>
122+
</router-link>
122123
</div>
123124
</div>
124125
</aside>

0 commit comments

Comments
 (0)