diff --git a/.github/workflows/auto-deploy.yaml b/.github/workflows/auto-deploy.yaml index 9f67e4fd6..b7fc8518b 100644 --- a/.github/workflows/auto-deploy.yaml +++ b/.github/workflows/auto-deploy.yaml @@ -8,7 +8,7 @@ jobs: build-and-push: if: github.event.pull_request.merged == true name: Build and Push Docker Image - runs-on: ubuntu-latest + runs-on: self-hosted permissions: contents: write pull-requests: write @@ -80,6 +80,7 @@ jobs: build-args: | NUXT_PUBLIC_RECAPTCHA_SITE_KEY=${{ secrets.NUXT_PUBLIC_RECAPTCHA_SITE_KEY }} NUXT_PUBLIC_DM_WS_URL=${{ steps.image.outputs.dm_ws_url }} + RAVEN_TENOR_KEY=${{ secrets.RAVEN_TENOR_KEY }} tags: | "${{ steps.image.outputs.registry }}:${{ steps.image.outputs.tag }}" "${{ steps.image.outputs.registry }}:${{ steps.image.outputs.latest_tag }}" diff --git a/.github/workflows/code-quality-workflow.yaml b/.github/workflows/code-quality-workflow.yaml index 72956e8b7..8f079e007 100644 --- a/.github/workflows/code-quality-workflow.yaml +++ b/.github/workflows/code-quality-workflow.yaml @@ -13,17 +13,17 @@ jobs: style-quality: if: github.event.pull_request.draft == false name: Code Style & Quality - runs-on: ubuntu-latest + runs-on: self-hosted steps: - uses: actions/checkout@v4 - - name: Set up Corepack - run: corepack enable - - name: Set up pnpm run: corepack prepare pnpm@latest --activate + - name: Add pnpm to PATH + run: echo "/home/btngana/.local/share/pnpm" >> $GITHUB_PATH + - uses: actions/setup-node@v4 with: node-version: 22 diff --git a/.github/workflows/e2e-workflow.yaml b/.github/workflows/e2e-workflow.yaml index 7568ab362..b68042970 100644 --- a/.github/workflows/e2e-workflow.yaml +++ b/.github/workflows/e2e-workflow.yaml @@ -7,7 +7,7 @@ on: jobs: e2e-tests: - runs-on: ubuntu-latest + runs-on: self-hosted environment: e2e env: APP_POSTGRES_USER: ${{ secrets.POSTGRES_USER }} @@ -46,6 +46,13 @@ jobs: APP_SEED_ENV: ${{ secrets.SEED_ENV }} APP_BACKEND_URL: ${{ secrets.BACKEND_URL }} APP_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} + APP_CLASSIFICATION_INTERVAL_MINUTES: ${{ secrets.CLASSIFICATION_INTERVAL_MINUTES }} + APP_CLASSIFY_REQ_LIMIT: ${{ secrets.CLASSIFY_REQ_LIMIT }} + APP_CLASSIFICATION_API_URL: ${{ secrets.CLASSIFICATION_API_URL }} + APP_CLASSIFY_TWEETS: ${{ secrets.CLASSIFY_TWEETS }} + APP_SUMMARY_API_KEY: ${{ secrets.SUMMARY_API_KEY }} + APP_RAVEN_TENOR_KEY: ${{ secrets.RAVEN_TENOR_KEY }} + APP_NUXT_PUBLIC_DM_WS_URL: ${{ secrets.NUXT_PUBLIC_DM_WS_URL_DEV }} APP_NUXT_PUBLIC_GOOGLE_CLIENT_ID: ${{ secrets.NUXT_PUBLIC_GOOGLE_CLIENT_ID }} APP_NUXT_PUBLIC_GITHUB_CLIENT_ID: ${{ secrets.NUXT_PUBLIC_GITHUB_CLIENT_ID }} APP_NUXT_PUBLIC_GITHUB_REDIRECT_URI: ${{ secrets.NUXT_PUBLIC_GITHUB_REDIRECT_URI }} @@ -62,8 +69,8 @@ jobs: run: | printenv | grep '^APP_' | sed 's/^APP_//' > .env - - name: Set up Corepack - run: corepack enable + # - name: Set up Corepack + # run: corepack enable - name: Set up pnpm run: corepack prepare pnpm@latest --activate diff --git a/.github/workflows/pr-validation-workflow.yaml b/.github/workflows/pr-validation-workflow.yaml index aecf8549d..1454167da 100644 --- a/.github/workflows/pr-validation-workflow.yaml +++ b/.github/workflows/pr-validation-workflow.yaml @@ -12,7 +12,7 @@ permissions: jobs: validate-merge-permissions: if: github.event.pull_request.base.ref == 'main' - runs-on: ubuntu-latest + runs-on: self-hosted name: Validate Merge Permissions steps: - name: Verify Authorized User @@ -31,7 +31,7 @@ jobs: branch-name-validation: if: github.event.pull_request.base.ref == 'dev' name: Validate branch naming convention - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Enforce kebab-case branch name @@ -49,7 +49,7 @@ jobs: validate-pr-title: name: Validate PR title format - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Check PR title format diff --git a/.github/workflows/testers-checklist.yaml b/.github/workflows/testers-checklist.yaml index 1ff3768f4..4b18665e6 100644 --- a/.github/workflows/testers-checklist.yaml +++ b/.github/workflows/testers-checklist.yaml @@ -7,7 +7,7 @@ on: jobs: checklist: if: github.event.pull_request.draft == false - runs-on: ubuntu-latest + runs-on: self-hosted permissions: pull-requests: write diff --git a/Dockerfile b/Dockerfile index 2afb2655c..a057b518b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,11 @@ ENV NODE_ENV=development ARG NUXT_PUBLIC_RECAPTCHA_SITE_KEY ARG NUXT_PUBLIC_DM_WS_URL +ARG RAVEN_TENOR_KEY ENV NUXT_PUBLIC_RECAPTCHA_SITE_KEY=$NUXT_PUBLIC_RECAPTCHA_SITE_KEY ENV NUXT_PUBLIC_DM_WS_URL=$NUXT_PUBLIC_DM_WS_URL +ENV RAVEN_TENOR_KEY=$RAVEN_TENOR_KEY # Install dependencies COPY package.json pnpm-lock.yaml ./ diff --git a/README.md b/README.md index 25b58212c..eed8fc20c 100644 --- a/README.md +++ b/README.md @@ -1,75 +1,293 @@ -# Nuxt Minimal Starter +
-Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
+# Raven Web App
-## Setup
+**Caw Your Thoughts**
-Make sure to install dependencies:
+A modern, responsive web application for the Raven social media platform built with Nuxt 4 and Vue 3.
-```bash
-# npm
-npm install
+[](https://nuxt.com/)
+[](https://vuejs.org/)
+[](https://www.typescriptlang.org/)
+[](https://tailwindcss.com/)
-# pnpm
-pnpm install
+
+const props = defineProps<{
+ interest: Interest;
+ isActive: boolean;
+}>();
+defineEmits<{
+ (e: 'toggle-interest'): void;
+}>();
+
+const translatedInterest = (interest: Interest) => {
+ return $t(
+ $te(`profile.account-setup.interests.${interest.code}`)
+ ? `profile.account-setup.interests.${interest.code}`
+ : interest.name,
+ );
+};
+
+
+
+