Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e14eae0
gendercomics-website-2.4.2-SNAPSHOT
sundancekid73 Apr 25, 2025
dcce794
fix(dep): fixed dependencies related to i18n to get navigaiton workin…
sundancekid73 Apr 29, 2025
476c40c
docs: README.md updated
sundancekid73 May 2, 2025
956d7ef
chore: deleted contents.sqlite
sundancekid73 May 2, 2025
b04657c
chore(deps): pinia updated to 3.0.2
sundancekid73 May 12, 2025
5dd02cc
chore(deps): nuxt-content v3 migration
sundancekid73 May 20, 2025
bc3c41f
Revert "chore(deps): nuxt-content v3 migration"
sundancekid73 May 26, 2025
566cb89
chore(deps): nuxt updated to 3.19.3
sundancekid73 Oct 24, 2025
9022f28
chore(deps): node version 22 for github actions
sundancekid73 Oct 24, 2025
2f2ee2e
chore(deps): node version 22 for github actions
sundancekid73 Oct 24, 2025
78c2c50
chore(deps): node version 22 for github actions, corrected order
sundancekid73 Oct 24, 2025
30a4cf2
chore(deps): node version 22 for github actions, corrected order
sundancekid73 Oct 24, 2025
3450ab5
chore(deps): node version 22 for github actions, cache path
sundancekid73 Oct 24, 2025
fb33262
chore(deps): node version 22 for github actions, cache path
sundancekid73 Oct 24, 2025
9388bab
chore(deps): node version 22 for github actions, cache path
sundancekid73 Oct 24, 2025
81bc3b3
chore(deps): node version 22 for github actions, cache path
sundancekid73 Oct 24, 2025
2a2e241
chore(deps): node version 22 for github actions, cache path
sundancekid73 Oct 25, 2025
ab234e9
chore(deps): node version 22 for github actions, cache path
sundancekid73 Oct 25, 2025
f8943e4
chore(deps): node version 22 for github actions, cache path
sundancekid73 Oct 25, 2025
45e27cf
chore(deps): node version 22 for docker/build-push-action
sundancekid73 Oct 25, 2025
457c040
chore(deps): node version 22
sundancekid73 Oct 25, 2025
94bca09
chore(deps): dependencies updated
sundancekid73 Oct 25, 2025
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
14 changes: 13 additions & 1 deletion .github/workflows/docker-image-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ jobs:
- name: check out the repo
uses: actions/checkout@master

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Install dependencies
run: npm ci

- name: log in to docker hub
uses: docker/login-action@v3
with:
Expand All @@ -36,7 +46,9 @@ jobs:
uses: docker/build-push-action@v6
with:
file: ./Dockerfile
build-args: VUE_APP_API_URL=https://api.gendercomics.net/
build-args: |
NODE_VERSION=22
VUE_APP_API_URL=https://api.gendercomics.net/
push: true
tags: ${{ steps.meta.outputs.tags }}

Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/docker-image-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ jobs:
name: push docker image to docker hub
runs-on: ubuntu-latest
steps:
- name: setup node
- name: check out the repo
uses: actions/checkout@master

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: '22.x'
cache: 'npm'
cache-dependency-path: package-lock.json

- name: check out the repo
uses: actions/checkout@master
- name: Install dependencies
run: npm ci

- name: log in to docker hub
uses: docker/login-action@v3
Expand All @@ -38,7 +43,9 @@ jobs:
uses: docker/build-push-action@v6
with:
file: ./Dockerfile
build-args: VUE_APP_API_URL=https://api-stage.gendercomics.net/
build-args: |
NODE_VERSION=22
VUE_APP_API_URL=https://api-stage.gendercomics.net/
push: true
tags: ${{ steps.meta.outputs.tags }}

Expand Down
100 changes: 56 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,75 +1,87 @@
# Nuxt 3 Minimal Starter
# GenderComics Website

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
The official website for GenderComics, built with Nuxt 3. This project serves as the digital platform for the GenderComics initiative, providing information, resources, and content about gender representation in comics.

## Setup
## Features

Make sure to install the dependencies:
- 🚀 Built with Nuxt 3 for optimal performance
- 🌐 Multi-language support with i18n
- 📚 Content management with @nuxt/content
- 🖼️ Optimized image handling with @nuxt/image
- 🔒 Security features with nuxt-security
- 📊 Analytics integration with insights-js
- 🗃️ State management with Pinia

## Prerequisites

- Node.js (LTS version recommended)
- npm, pnpm, yarn, or bun package manager

## Getting Started

1. Clone the repository
2. Install dependencies:

```bash
# npm
# Using npm
npm install

# pnpm
# Using pnpm
pnpm install

# yarn
# Using yarn
yarn install

# bun
bun install
```

## Development Server
## Development

Start the development server on `http://localhost:3000`:
Start the development server:

```bash
# npm
npm run dev
npm run dev-website
```

# pnpm
pnpm run dev
The website will be available at `http://localhost:3000`

# yarn
yarn dev
## Building for Production

# bun
bun run dev
```
To build the application for production:

## Production
```bash
npm run build-website
```

Build the application for production:
To preview the production build locally:

```bash
# npm
npm run build
npm run preview-website
```

# pnpm
pnpm run build
## Project Structure

# yarn
yarn build
- `content/` - Contains the website's content in markdown format
- `components/` - Vue components used throughout the application
- `pages/` - Application views and routes
- `public/` - Static assets
- `locales/` - Translation files for internationalization

# bun
bun run build
```
## Contributing

Locally preview production build:
Please read our contributing guidelines before submitting pull requests.

```bash
# npm
npm run preview
## License

# pnpm
pnpm run preview
This project is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0) license.

# yarn
yarn preview
This means you are free to:
- Share — copy and redistribute the material in any medium or format for any purpose, even commercially.

# bun
bun run preview
```
Under the following terms:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made.
- NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material.

For more information, see the [full license text](https://creativecommons.org/licenses/by-nd/4.0/).

## Contact

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
[Add contact information here]
12 changes: 10 additions & 2 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@ import { useFeatureStore } from '~/stores/features.ts'
import { init, trackPages } from 'insights-js'

const featureStore = useFeatureStore()
init('TrYgnSHvKAIkGdBl')
trackPages()
const { isDev } = useRuntimeConfig()

if (!isDev) {
init('TrYgnSHvKAIkGdBl')
trackPages()
}

onMounted(() => {
console.log('isDev', isDev)
})
</script>

<template>
Expand Down
24 changes: 12 additions & 12 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export default defineNuxtConfig({
},

// staging does not work yet
$staging: {
appConfig: {
dbApiBaseUrl: 'https://api-stage.gendercomics.net',
apiImageUrl: 'https://api-stage.gendercomics.net/images',
},
},
// $staging: {
// appConfig: {
// dbApiBaseUrl: 'https://api-stage.gendercomics.net',
// apiImageUrl: 'https://api-stage.gendercomics.net/images',
// },
// },

$production: {
appConfig: {
Expand Down Expand Up @@ -118,12 +118,12 @@ export default defineNuxtConfig({
},
},

render: {
etag: false,
static: {
cacheControl: false,
},
},
// render: {
// etag: false,
// static: {
// cacheControl: false,
// },
// },

compatibilityDate: '2024-09-04',
})
Loading