Skip to content

Commit

Permalink
UX-improvements (#165)
Browse files Browse the repository at this point in the history
* Updates Strapi, NextJS and more
* Improves navigation bar
* Combines Word lid and Steun ons
* Improvements to the footer
* Improves home page layout
* Removes panning and zooming controls from map on home page
* Resolves console warnings
* Improves posts design
* Fixes bug in posts search
* Resolves bug where 'meer laden' on home would retrieve non-frontpage posts
* Improves markdown rendering
* Improves design of werkgroepen page
* Fixes prettier config
  • Loading branch information
JordiVanOs authored Apr 4, 2023
1 parent c01f35f commit ec90663
Show file tree
Hide file tree
Showing 77 changed files with 3,225 additions and 3,890 deletions.
3 changes: 0 additions & 3 deletions .editorconfig

This file was deleted.

32 changes: 16 additions & 16 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/frontend" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "npm" # See documentation for possible values
directory: "/backend" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "docker"
directory: "/frontend"
schedule:
interval: "weekly"
- package-ecosystem: "docker"
directory: "/backend"
schedule:
interval: "weekly"
- package-ecosystem: "npm" # See documentation for possible values
directory: "/frontend" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "npm" # See documentation for possible values
directory: "/backend" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "docker"
directory: "/frontend"
schedule:
interval: "weekly"
- package-ecosystem: "docker"
directory: "/backend"
schedule:
interval: "weekly"
48 changes: 24 additions & 24 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
name: Lint

on:
push:
branches:
- main
pull_request:
push:
branches:
- main
pull_request:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: "yarn"
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: "yarn"

- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Lint Prettier
run: yarn lint:prettier
- name: Lint Prettier
run: yarn lint:prettier

- name: Install frontend dependencies
run: cd frontend && yarn install --frozen-lockfile
- name: Install frontend dependencies
run: cd frontend && yarn install --frozen-lockfile

- name: Run next lint on frontend
run: cd frontend && yarn lint --max-warnings=0
- name: Run next lint on frontend
run: cd frontend && yarn lint --max-warnings=0

- name: Typecheck frontend
run: cd frontend && yarn ts-lint
- name: Typecheck frontend
run: cd frontend && yarn ts-lint
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ frontend/.next
docker
backend/build
backend/.strapi-updater.json
*.md
*.md
2 changes: 2 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tabWidth: 4
printWidth: 90
48 changes: 24 additions & 24 deletions backend/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"parser": "babel-eslint",
"extends": "eslint:recommended",
"env": {
"commonjs": true,
"es6": true,
"node": true,
"browser": false
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": false
"parser": "babel-eslint",
"extends": "eslint:recommended",
"env": {
"commonjs": true,
"es6": true,
"node": true,
"browser": false
},
"sourceType": "module"
},
"globals": {
"strapi": true
},
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"no-console": 0,
"quotes": ["error", "single"],
"semi": ["error", "always"]
}
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": false
},
"sourceType": "module"
},
"globals": {
"strapi": true
},
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"no-console": 0,
"quotes": ["error", "single"],
"semi": ["error", "always"]
}
}
6 changes: 3 additions & 3 deletions backend/config/admin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = ({ env }) => ({
auth: {
secret: env("ADMIN_JWT_SECRET"),
},
auth: {
secret: env("ADMIN_JWT_SECRET"),
},
});
10 changes: 5 additions & 5 deletions backend/config/api.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
rest: {
defaultLimit: 1000,
maxLimit: 1000,
withCount: true,
},
rest: {
defaultLimit: 1000,
maxLimit: 1000,
withCount: true,
},
};
16 changes: 8 additions & 8 deletions backend/config/database.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const path = require("path");

module.exports = ({ env }) => ({
connection: {
client: "postgres",
connection: {
host: env("DATABASE_HOST"),
port: env("DATABASE_PORT"),
database: env("DATABASE_NAME"),
user: env("DATABASE_USER"),
password: env("DATABASE_PASSWORD"),
client: "postgres",
connection: {
host: env("DATABASE_HOST"),
port: env("DATABASE_PORT"),
database: env("DATABASE_NAME"),
user: env("DATABASE_USER"),
password: env("DATABASE_PASSWORD"),
},
},
},
});
20 changes: 10 additions & 10 deletions backend/config/middlewares.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module.exports = [
"strapi::errors",
"strapi::security",
"strapi::cors",
"strapi::poweredBy",
"strapi::logger",
"strapi::query",
"strapi::body",
"strapi::session",
"strapi::favicon",
"strapi::public",
"strapi::errors",
"strapi::security",
"strapi::cors",
"strapi::poweredBy",
"strapi::logger",
"strapi::query",
"strapi::body",
"strapi::session",
"strapi::favicon",
"strapi::public",
];
38 changes: 19 additions & 19 deletions backend/config/plugins.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
module.exports = ({ env }) => ({
i18n: true,
"users-permissions": {
jwtSecret: env("JWT_SECRET"),
},
email: {
config: {
provider: "nodemailer",
providerOptions: {
host: env("SMTP_HOST", "mail.zxcs.nl"),
port: env("SMTP_PORT", 465),
auth: {
user: env("SMTP_USERNAME"),
pass: env("SMTP_PASSWORD"),
i18n: true,
"users-permissions": {
jwtSecret: env("JWT_SECRET"),
},
email: {
config: {
provider: "nodemailer",
providerOptions: {
host: env("SMTP_HOST", "mail.zxcs.nl"),
port: env("SMTP_PORT", 465),
auth: {
user: env("SMTP_USERNAME"),
pass: env("SMTP_PASSWORD"),
},
},
settings: {
defaultFrom: "[email protected]",
defaultReplyTo: "[email protected]",
},
},
},
settings: {
defaultFrom: "[email protected]",
defaultReplyTo: "[email protected]",
},
},
},
});
15 changes: 9 additions & 6 deletions backend/config/server.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
module.exports = ({ env }) => ({
host: env("HOST"),
port: env.int("PORT"),
url: env("URL"),
app: {
keys: env.array("APP_KEYS"),
},
host: env("HOST"),
port: env.int("PORT"),
url: env("URL"),
app: {
keys: env.array("APP_KEYS"),
},
webhooks: {
populateRelations: false,
},
});
62 changes: 31 additions & 31 deletions backend/package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"name": "backend",
"private": true,
"version": "0.1.0",
"description": "Backend for roodjongeren.nl",
"scripts": {
"dev": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"start-prod": "strapi build && strapi start",
"strapi": "strapi"
},
"devDependencies": {},
"dependencies": {
"@strapi/plugin-i18n": "4.5.4",
"@strapi/plugin-users-permissions": "4.5.5",
"@strapi/provider-email-nodemailer": "^4.5.4",
"@strapi/strapi": "4.5.5",
"crypto-random-string": "^5.0.0",
"pg": "^8.8.0"
},
"author": {
"name": "Jordi van Os"
},
"strapi": {
"uuid": "e7e79fab-5830-48d6-a35f-c4e1440e1955"
},
"engines": {
"node": ">=12.x.x <=16.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"
"name": "backend",
"private": true,
"version": "0.1.0",
"description": "Backend for roodjongeren.nl",
"scripts": {
"dev": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"start-prod": "strapi build && strapi start",
"strapi": "strapi"
},
"devDependencies": {},
"dependencies": {
"@strapi/plugin-i18n": "4.8.2",
"@strapi/plugin-users-permissions": "4.8.2",
"@strapi/provider-email-nodemailer": "^4.8.2",
"@strapi/strapi": "4.8.2",
"crypto-random-string": "^5.0.0",
"pg": "^8.10.0"
},
"author": {
"name": "Jordi van Os"
},
"strapi": {
"uuid": "e7e79fab-5830-48d6-a35f-c4e1440e1955"
},
"engines": {
"node": ">=12.x.x <=16.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"
}
Loading

0 comments on commit ec90663

Please sign in to comment.