Skip to content

Commit 1bc8ad6

Browse files
Remove the page-id capsule on tbpro keycloak theme (Fixes #503) (#505)
1 parent 08cdaf7 commit 1bc8ad6

3 files changed

Lines changed: 5 additions & 37 deletions

File tree

keycloak/themes/tbpro/assets/css/main.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,3 @@ body {
3737
white-space: nowrap;
3838
border-width: 0;
3939
}
40-
41-
@keyframes wiggle {
42-
0% { transform: rotate(0deg); }
43-
25% { transform: rotate(-5deg); }
44-
50% { transform: rotate(5deg); }
45-
75% { transform: rotate(-5deg); }
46-
100% { transform: rotate(0deg); }
47-
}

keycloak/themes/tbpro/assets/vue/App.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ import BaseTemplate from '@kc/vue/BaseTemplate.vue';
66
// Match routes based on pageId / route name
77
const pageId = ref(window._page.pageId);
88
const routeName = pageId.value && router.hasRoute(pageId.value) ? pageId.value : 'route-not-implemented';
9-
console.log('route:', routeName);
9+
// Information for easier debugging
10+
console.info({
11+
route: routeName,
12+
pageId: pageId.value,
13+
});
1014
router.replace({ name: routeName });
1115
</script>
1216

keycloak/themes/tbpro/assets/vue/BaseTemplate.vue

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
<script setup lang="ts">
22
import { ref } from 'vue';
33
import OrbGraphic from '@kc/images/orb-graphic.png';
4-
5-
const pageId = ref(window._page.pageId);
6-
7-
const playingAnimation = ref(false);
8-
const onWiggle = async () => {
9-
playingAnimation.value = true;
10-
window.setTimeout(() => {
11-
playingAnimation.value = false;
12-
}, 1000);
13-
};
144
</script>
155

166
<template>
177
<section class="bolt-defaults">
18-
<div class="debug-page-id" @click="onWiggle" :class="{ wiggle: playingAnimation }">{{ pageId }}</div>
19-
208
<div class="card">
219
<!-- Left side: Orb graphic -->
2210
<div class="left-side">
@@ -34,22 +22,6 @@ const onWiggle = async () => {
3422
</template>
3523

3624
<style scoped>
37-
.wiggle {
38-
animation: wiggle 1s;
39-
}
40-
41-
.debug-page-id {
42-
cursor: pointer;
43-
position: absolute;
44-
top: 1rem;
45-
left: 1rem;
46-
background-color: black;
47-
color: white;
48-
border-radius: 1rem;
49-
padding: 0.5rem;
50-
z-index: 2;
51-
}
52-
5325
section {
5426
min-height: 100vh;
5527
display: flex;

0 commit comments

Comments
 (0)