forked from elk-zone/elk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: different logos for staging and dev
- Loading branch information
Showing
19 changed files
with
64 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import type { BuildInfo } from '~~/types' | ||
|
||
export interface Team { | ||
github: string | ||
display: string | ||
|
@@ -31,3 +33,7 @@ export const teams: Team[] = [ | |
mastodon: '[email protected]', | ||
}, | ||
].sort(() => Math.random() - 0.5) | ||
|
||
export function useBuildInfo() { | ||
return useRuntimeConfig().public.buildInfo as BuildInfo | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { createResolver, defineNuxtModule } from '@nuxt/kit' | ||
import { getEnv, version } from '../config/env' | ||
import type { BuildInfo } from '~/types' | ||
|
||
const { resolve } = createResolver(import.meta.url) | ||
|
||
export default defineNuxtModule({ | ||
meta: { | ||
name: 'elk:build-env', | ||
}, | ||
async setup(_options, nuxt) { | ||
const { env, commit, branch } = await getEnv() | ||
const buildInfo: BuildInfo = { | ||
version, | ||
time: +Date.now(), | ||
commit, | ||
branch, | ||
env, | ||
} | ||
|
||
nuxt.options.runtimeConfig.public.env = env | ||
nuxt.options.runtimeConfig.public.buildInfo = buildInfo | ||
|
||
nuxt.options.nitro.publicAssets ||= nuxt.options.nitro.publicAssets || [] | ||
if (env === 'canary' || env === 'preview') | ||
nuxt.options.nitro.publicAssets.push({ dir: resolve('../public-staging') }) | ||
else if (env === 'dev') | ||
nuxt.options.nitro.publicAssets.push({ dir: resolve('../public-dev') }) | ||
}, | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
/// <reference types="@types/wicg-file-system-access" /> | ||
/// <reference types="vite-plugin-pwa/info" /> | ||
/// <reference types="vite-plugin-pwa/client" /> | ||
|
||
declare module 'virtual:build-info' { | ||
import type { BuildInfo } from '~/types' | ||
export const buildInfo: BuildInfo | ||
} |