Skip to content

Commit

Permalink
chore: develop (#83)
Browse files Browse the repository at this point in the history
* docs: add more about OpenSeries & change banner url (#58)

* feat: change navbar design to stacked on mobile screen & add breadcrumbs (#59)

* fix: navbar dropdown background color

* feat: stacked navbar

* feat: control sidebar visibility with global state

* feat: close button for sidebar

* feat: breadcrumbs for stacked navbar

* chore: lint codebase

* chore: add codeowners (#60)

* feat: add navbar sidebar overlay & remove unnecessary nav links (#61)

* chore: change naming convention (#62)

* chore: add sort import prettier (#63)

* chore: update eslint config (#64)

* chore: add eslint reccomended config

* chore: add rules to eslint

* feat: automate sidebar links (#65)

* fix: komunitas not found (#66)

* feat: create changelog page (#67)

* feat: create changelog page

* fix: bun.lockb version

* fix: svg animation too heavy (#68)

* fix: svg animation too heavy

* fix: minor sode style css

* add: meta keywords, applicationName, creator, openGraph image (#69)

* add: meta keywords, applicationName, creator, openGraph image

* fix: change meta title

* fix: metadataBase url (#71)

* docs: improvisasi kata dan layout untuk README.md dan CONTRIBUTING.md (#70)

* add: menambahkan file LICENSE dan banner OpenSeries

* docs: improvisasi kata dan layout pada README.md dan CONTRIBUTING.md

* docs: membenarkan pengarahan link yg salah & kata yg tidak konsisten

* fix: refactor css (pengtailwind-an masal cuy) (#72)

* chore: add postbuild for sitemap (#73)

* chore: add markdownlint (#74)

* chore: add markdownlint

* chore: fix pre-commit config

* chore: update pr-build.yaml (#76)

* chore: update pr-build.yaml

* chore: refactor pr-build.yaml

* chore: fix eof pr-build.yaml

* chore: fix unknown flag

* chore: update body comment

* chore: rename build workflow

* chore: update build workflow (#78)

* chore: update build workflow

* chore: fix conditional binary operator expected

* docs: sengaja disalahin

* chore: fix bun not found

* fix: sengaja dibenerin

* chore: update CONTRIBUTING.md (#79)

* chore: create issue template (#81)

* chore: create pull request template & update issue template (#82)

* chore: remove unused file

* fix: minor changelog button in light mode

---------

Co-authored-by: Ashtrath <ashtrath@pm.me>
  • Loading branch information
kimmyxpow and ashtrath authored Feb 19, 2024
1 parent b341649 commit 378d887
Show file tree
Hide file tree
Showing 94 changed files with 1,106 additions and 912 deletions.
11 changes: 10 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"extends": ["next/core-web-vitals", "plugin:prettier/recommended"]
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"next/core-web-vitals",
"plugin:prettier/recommended"
],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"]
}
}
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @slowy07 @abnvlf
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Bug report
about: Buat laporan untuk membantu kami memperbaiki
title: "[BUG] "
labels: bug
assignees: abnvlf
---

## Deskripsikan Bug

<!-- Deskripsi yang jelas dan ringkas tentang apa yang menjadi bug. -->

## Untuk Reproduce Issue

<!-- Langkah-langkah untuk reproduce issue:
1. Buka '...'
2. Klik pada '....'
3. Gulir ke bawah ke '....'
4. Lihat kesalahan -->

## Perilaku yang Diharapkan

<!-- Deskripsi yang jelas dan ringkas tentang apa yang seharusnya terjadi. -->

## Tangkapan Layar

<!-- Jika relevan, tambahkan tangkapan layar untuk membantu menjelaskan masalah Anda. -->

## Desktop (tolong lengkapi informasi berikut)

- OS: [contoh: iOS]
- Browser [contoh: chrome, safari]
- Versi [contoh: 22]

## Smartphone (tolong lengkapi informasi berikut)

- Perangkat: [contoh: iPhone6]
- OS: [contoh: iOS8.1]
- Browser [contoh: browser bawaan, safari]
- Versi [contoh: 22]

## Konteks Tambahan

Tambahkan konteks tambahan tentang masalah di sini.
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/contribute-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Contribute Request
about: "Ajukan ide untuk berkontribusi proyek ini "
title: "[CONTRIBUTE] "
labels: enhancement
assignees: ""
---

## Deskripsi Perubahan

<!-- Tulis deskripsi yang jelas dan rinci tentang perubahan atau penambahan yang ingin Anda ajukan. Jika memungkinkan, sertakan alasan atau kebutuhan untuk perubahan tersebut. -->
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature request
about: Ajukan ide untuk proyek ini
title: "[REQUEST] "
labels: enhancement
assignees: abnvlf
---

## Apakah permintaan fitur Anda terkait dengan masalah? Silakan deskripsikan

<!-- Deskripsi yang jelas dan ringkas tentang masalah yang Anda alami. Contoh: Saya selalu frustrasi ketika [...] -->

## Deskripsikan solusi yang Anda inginkan

<!-- Deskripsi yang jelas dan ringkas tentang apa yang Anda inginkan terjadi. -->

## Deskripsikan alternatif yang telah Anda pertimbangkan

<!-- Deskripsi yang jelas dan ringkas tentang solusi atau fitur alternatif yang telah Anda pertimbangkan. -->

## Konteks Tambahan

<!-- Tambahkan konteks atau tangkapan layar tambahan mengenai permintaan fitur di sini. -->
Binary file added .github/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Penambahan / Perubahan / Perbaikan Fitur [Nama Fitur]

## Deskripsi

<!-- Deskripsikan tentang perubahan yang kamu berikan. -->

## Screenshot Hasil Perubahan

<!-- Sceenshot hasil perubahan yang kamu berikan. -->

## Checklist

<!-- Kontribusimu harus sesuai dengan checklist dibawah -->

### Contributor Requirements (Syarat Kontributor) dan Lain-Lain

- [ ] Saya sudah membaca [CONTRIBUTING](https://github.com/bellshade/OpenSeries/blob/main/CONTRIBUTING.md) dan sudah menyetujui semua syarat.
- [ ] Saya menggunakan bahasa Indonesia untuk memberikan penjelasan dari kode yang saya buat.

### Formatting dan Linting

<!-- Tandai yang sesuai dengan perubahamnu -->

- [ ] prettier
- [ ] eslint
- [ ] markdownlint

## Environment

Saya menggunakan:

<!-- Ganti sesuai yang digunakan. -->

- `os` = `linux / windows / macOS`
- `bun` = `cek menggunakan bun -v`

<!-- Harap gunakan bun versi terbaru -->

<!-- Jika ada gagal pada salah satu test, kami akan mengeceknya kembali. -->

linked issue #NOMOR_ISSUE <!--contoh #1-->
69 changes: 69 additions & 0 deletions .github/workflows/build-openseries-web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Build OpenSeries Web

on:
pull_request:
branches:
- develop
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Build Next.js
run: |
bun install --frozen-lockfile
bun lint
bun run build
- name: Check Build Status
run: |
if [ $? -eq 0 ]; then
echo "Build successful"
else
echo "Build failed. Exiting..."
exit 1
fi
comment:
needs: build
runs-on: ubuntu-latest
if: always()
steps:
- name: Comment on Pull Request
env:
GH_TOKEN: ${{ secrets.WF_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}
run: |
LAST_COMMIT_SHA="${{ github.event.pull_request.head.sha }}"
if [ ${{ needs.build.result }} == 'success' ]; then
BUILD_STATUS="Berhasil🩵"
LABEL="ready to review"
SUCCESS_MESSAGE="Mohon untuk menunggu para Maintainer mereview kodemu🎉!"
REMOVAL_LABEL="invalid"
else
BUILD_STATUS="Gagal💔"
LABEL="invalid"
SUCCESS_MESSAGE="Sepertinya ada kesalahan dalam kode yang menyebabkan kegagalan build. Coba jalankan \`bun run build\` di localmu. Silahkan perbaiki terlebih dahulu😼!"
REMOVAL_LABEL="ready to review"
fi
COMMENT_BODY=$(cat <<EOF
## Building Website OpenSeries😍
Build untuk pull request ini $BUILD_STATUS. $SUCCESS_MESSAGE
| Commit | Status |
|-------------|-----------|
| $LAST_COMMIT_SHA | $BUILD_STATUS |
EOF
)
gh pr edit $PR --add-label "$LABEL"
gh pr edit $PR --remove-label "$REMOVAL_LABEL"
gh pr comment $PR --body "$COMMENT_BODY"
41 changes: 0 additions & 41 deletions .github/workflows/pr-build.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ next-env.d.ts

/OpenSeries
/testing

public/robots.txt
public/sitemap*
26 changes: 26 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"default": true,
"no-inline-html": false,
"blanks-around-fences": false,
"blanks-around-headings": false,
"blanks-around-lists": false,
"code-fence-style": false,
"emphasis-style": false,
"heading-start-left": false,
"hr-style": false,
"line-length": false,
"list-indent": false,
"list-marker-space": false,
"no-blanks-blockquote": false,
"no-hard-tabs": false,
"no-missing-space-atx": false,
"no-missing-space-closed-atx": false,
"no-multiple-blanks": false,
"no-multiple-space-atx": false,
"no-multiple-space-blockquote": false,
"no-multiple-space-closed-atx": false,
"no-trailing-spaces": false,
"ol-prefix": false,
"strong-style": false,
"ul-indent": false
}
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ repos:
- id: prettier
additional_dependencies:
- prettier@^3.2.2
- prettier-plugin-tailwindcss@^0.5.11

# pre commit dari eslint
- repo: https://github.com/pre-commit/mirrors-eslint
Expand All @@ -22,8 +21,9 @@ repos:
- id: eslint
files: \.[jt]sx?$
types: [file]
additional_dependencies:
- eslint@^8.56.0
- eslint-config-next@14.0.4
- eslint-config-prettier@^9.1.0
- eslint-plugin-prettier@^5.1.3

# pre commit dari markdownlint
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

7 changes: 6 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"printWidth": 120,
"trailingComma": "none",
"plugins": ["prettier-plugin-tailwindcss"]
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"importOrderCaseInsensitive": true,
"importOrderParserPlugins": ["typescript", "jsx", "mdx"],
"importOrder": ["^@/constants/(.*)$", "^@/stores/(.*)$", "^@/utils/(.*)$", "^@/components/(.*)$", "^[./]"],
"plugins": ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"]
}
Loading

0 comments on commit 378d887

Please sign in to comment.