Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add powered by information in page footer #5153

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions console/console-src/layouts/BasicLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@ onMounted(() => {
<main class="content w-full pb-12 mb-safe md:w-[calc(100%-16rem)] md:pb-0">
<slot v-if="$slots.default" />
<RouterView v-else />
<footer
v-if="!route.meta.hideFooter"
class="mt-auto p-4 text-center text-sm"
>
<span class="text-gray-600">Powered by </span>
<RouterLink to="/actuator" class="hover:text-gray-600">
Halo
</RouterLink>
</footer>
</main>

<!--bottom nav bar-->
Expand Down
1 change: 1 addition & 0 deletions console/console-src/modules/contents/pages/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default definePlugin({
meta: {
title: "core.page_editor.title",
searchable: true,
hideFooter: true,
permissions: ["system:singlepages:manage"],
},
},
Expand Down
1 change: 1 addition & 0 deletions console/console-src/modules/contents/posts/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default definePlugin({
meta: {
title: "core.post_editor.title",
searchable: true,
hideFooter: true,
permissions: ["system:posts:manage"],
},
},
Expand Down
1 change: 1 addition & 0 deletions console/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ declare module "vue-router" {
searchable?: boolean;
permissions?: string[];
core?: boolean;
hideFooter?: boolean;
menu?: {
name: string;
group?: CoreMenuGroupId;
Expand Down
6 changes: 6 additions & 0 deletions console/src/components/base-app/BaseApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ body {
background: #eff4f9;
}

html,
body,
#app {
height: 100%;
}

*,
*::before,
*::after {
Expand Down
13 changes: 13 additions & 0 deletions console/uc-src/layouts/BasicLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,19 @@ const disallowAccessConsole = computed(() => {
<main class="content w-full pb-12 mb-safe md:w-[calc(100%-16rem)] md:pb-0">
<slot v-if="$slots.default" />
<RouterView v-else />
<footer
v-if="!route.meta.hideFooter"
class="mt-auto p-4 text-center text-sm"
>
<span class="text-gray-600">Powered by </span>
<a
href="https://www.halo.run"
target="_blank"
class="hover:text-gray-600"
>
Halo
</a>
</footer>
</main>

<!--bottom nav bar-->
Expand Down
1 change: 1 addition & 0 deletions console/uc-src/modules/contents/posts/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default definePlugin({
meta: {
title: "core.post_editor.title",
searchable: true,
hideFooter: true,
permissions: ["uc:posts:manage"],
},
},
Expand Down
Loading