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

chore: remove 'elk' mentions from config files #12

Merged
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
blank_issues_enabled: false
contact_links:
# - name: Discord Chat
# url: https://chat.elk.zone
# url: https://chat.nimbus.town
# about: Ask questions and discuss with other users in real time.
- name: Questions & Discussions
url: https://github.com/nimbus-zone/nimbus/discussions
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dist
.vite-inspect
.netlify/
.eslintcache
elk-translation-status.json
nimbus-translation-status.json

public/emojis

Expand Down
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM docker.io/library/node:lts-alpine AS base

# Prepare work directory
WORKDIR /elk
WORKDIR /nimbus

FROM base AS builder

Expand Down Expand Up @@ -35,23 +35,23 @@ ARG GID=911

# Create a dedicated user and group
RUN set -eux; \
addgroup -g $GID elk; \
adduser -u $UID -D -G elk elk;
addgroup -g $GID nimbus; \
adduser -u $UID -D -G nimbus nimbus;

USER elk
USER nimbus

ENV NODE_ENV=production

COPY --from=builder /elk/.output ./.output
COPY --from=builder /nimbus/.output ./.output

EXPOSE 5314/tcp

ENV PORT=5314

# Specify container only environment variables ( can be overwritten by runtime env )
ENV NUXT_STORAGE_FS_BASE='/elk/data'
ENV NUXT_STORAGE_FS_BASE='/nimbus/data'

# Persistent storage data
VOLUME [ "/elk/data" ]
VOLUME [ "/nimbus/data" ]

CMD ["node", ".output/server/index.mjs"]
8 changes: 4 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
services:
elk:
nimbus:
build:
context: .
dockerfile: Dockerfile
volumes:
# make sure this directory has the same ownership as the elk user from the Dockerfile
# make sure this directory has the same ownership as the nimbus user from the Dockerfile
# otherwise Nimbus will not be able to store configs for accounts
# e.q. mkdir ./elk-storage; sudo chown 911:911 ./elk-storage
- './elk-storage:/elk/data'
# e.q. mkdir ./nimbus-storage; sudo chown 911:911 ./nimbus-storage
- './nimbus-storage:/nimbus/data'
ports:
- 5314:5314
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default await antfu(
'public-dev/**',
'public-staging/**',
'https-dev-config/**',
'elk-translation-status.json',
'nimbus-translation-status.json',
'docs/translation-status.json',
],
},
Expand Down
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ command = "pnpm run build"

# Redirect to Discord server
[[redirects]]
from = "https://chat.elk.zone"
to = "https://discord.gg/vAZSDU9J"
from = "https://chat.nimbus.town"
to = "https://discord.gg/JuFDMrTRSD"
status = 301
force = true
4 changes: 2 additions & 2 deletions pages/settings/language/index.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup lang="ts">
import type { ElkTranslationStatus } from '~/types/translation-status'
import type { NimbusTranslationStatus } from '~/types/translation-status'

const { t, locale } = useI18n()

const translationStatus: ElkTranslationStatus = await import('~/elk-translation-status.json').then(m => m.default)
const translationStatus: NimbusTranslationStatus = await import('~/nimbus-translation-status.json').then(m => m.default)

useHydratedHead({
title: () => `${t('settings.language.label')} | ${t('nav.settings')}`,
Expand Down
2 changes: 1 addition & 1 deletion public/_redirects
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/docs/* https://docs.elk.zone/:splat 200
/docs/* https://docs.nimbus.town/:splat 200
/settings/* /index.html 200
10 changes: 7 additions & 3 deletions scripts/prepare-translation-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Buffer } from 'node:buffer'
import { readFile, writeFile } from 'node:fs/promises'
import { createResolver } from '@nuxt/kit'
import { flatten } from 'flat'
import type { ElkTranslationStatus } from '~/types/translation-status'
import type { NimbusTranslationStatus } from '~/types/translation-status'
import { countryLocaleVariants, currentLocales } from '../config/i18n'

export const localeData: [code: string, file: string[], title: string][]
Expand Down Expand Up @@ -107,13 +107,15 @@ async function prepareTranslationStatus() {

const resolver = createResolver(import.meta.url)

console.info('Writing translation status...')

await writeFile(
resolver.resolve('../docs/translation-status.json'),
JSON.stringify(sorted, null, 2),
{ encoding: 'utf-8' },
)

const translationStatus: ElkTranslationStatus = {
const translationStatus: NimbusTranslationStatus = {
total,
locales: {
'en-US': {
Expand All @@ -136,8 +138,10 @@ async function prepareTranslationStatus() {
}
})

console.info('Writing nimbus-translation-status.json...')

await writeFile(
resolver.resolve('../elk-translation-status.json'),
resolver.resolve('../nimbus-translation-status.json'),
JSON.stringify(translationStatus, null, 2),
{ encoding: 'utf-8' },
)
Expand Down
2 changes: 1 addition & 1 deletion types/translation-status.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface ElkTranslationStatus {
export interface NimbusTranslationStatus {
total: number
locales: Record<string, {
percentage: string
Expand Down