Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
3386358
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Jun 14, 2024
cef56f0
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Jun 25, 2024
e53751a
example update
KarelJanVanHaute Jun 25, 2024
9480aa7
Example files
arnaud-dbu Jun 25, 2024
e4b4e67
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Jun 25, 2024
a721736
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Jun 26, 2024
e7d00ca
docs
KarelJanVanHaute Jun 26, 2024
b85d231
Refactor dropdown to use data-attributes and document component
arnaud-dbu Oct 21, 2024
8a28e2c
Refactor scroll smooth to use data-attributes and document component
arnaud-dbu Oct 21, 2024
4a2c682
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Apr 3, 2025
b1d3960
docs
KarelJanVanHaute Apr 4, 2025
57dcf6a
github pages
KarelJanVanHaute Apr 4, 2025
915a2fe
github pages
KarelJanVanHaute Apr 4, 2025
8493f3c
github pages
KarelJanVanHaute Apr 4, 2025
fd4ba4d
packages
KarelJanVanHaute Apr 4, 2025
c0a279b
packages
KarelJanVanHaute Apr 4, 2025
d512772
docs
KarelJanVanHaute Apr 4, 2025
e741ec1
docs path
KarelJanVanHaute Apr 4, 2025
55ad009
build with doc styles
KarelJanVanHaute Apr 4, 2025
18d675e
accordion
KarelJanVanHaute Apr 4, 2025
751cf6f
add close button functionality to accordion component
KarelJanVanHaute Apr 4, 2025
f7f36d1
update accordion documentation to include grouping and extra close bu…
KarelJanVanHaute Apr 4, 2025
13093c0
refactor: simplify DynamicLayout and update navigation links in config
KarelJanVanHaute Apr 4, 2025
bb9d4b8
refactor: update AjaxPaging component to use data attributes for elem…
KarelJanVanHaute Apr 4, 2025
6e8fa72
Refactor code structure for improved readability and maintainability
KarelJanVanHaute Apr 8, 2025
de92cb6
Add AJAX paging examples and documentation
KarelJanVanHaute Apr 9, 2025
c24699b
refactor: update AjaxSearch component to use new data attributes and …
KarelJanVanHaute Apr 10, 2025
ba2aa29
refactor: update AjaxSearch component to handle asynchronous language…
KarelJanVanHaute Apr 11, 2025
dc01cde
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Apr 11, 2025
052481e
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute May 14, 2025
275488e
feat: add Swiper component and update documentation for new components
KarelJanVanHaute May 18, 2025
b212d09
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute May 19, 2025
033b958
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute May 21, 2025
96b80d5
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute May 27, 2025
e7b6c03
filter
KarelJanVanHaute Jun 3, 2025
c16be5f
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Jun 4, 2025
c0d8336
Indeterminate
KarelJanVanHaute Jun 4, 2025
572a1d5
toggle
KarelJanVanHaute Jun 4, 2025
57df59a
validation
KarelJanVanHaute Jun 6, 2025
5132d45
pullout
KarelJanVanHaute Jun 6, 2025
7e35c74
pullout
KarelJanVanHaute Jun 6, 2025
20a45c5
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Jun 11, 2025
3f2434c
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Jul 11, 2025
2270051
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Sep 1, 2025
543ea10
Matrix
KarelJanVanHaute Sep 2, 2025
889aa1f
frontend
KarelJanVanHaute Sep 5, 2025
bd114f5
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Sep 15, 2025
a683227
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Oct 6, 2025
928f9b4
docs
KarelJanVanHaute Oct 6, 2025
f57e117
docs and components
KarelJanVanHaute Oct 7, 2025
7eed4d8
fixes
KarelJanVanHaute Oct 7, 2025
2d661ac
remove jspluging
KarelJanVanHaute Oct 7, 2025
d8bf6e2
git
KarelJanVanHaute Oct 7, 2025
aeeed05
Merge branch 'develop' into KarelJanVanHaute/issue347
KarelJanVanHaute Oct 7, 2025
376da2f
Write frontend docs for all components in an appealing form factor.
KarelJanVanHaute Oct 7, 2025
4fabb6f
remove doctest
KarelJanVanHaute Oct 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .ddev/.env.web
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
CRAFT_DB_SERVER="db"
CRAFT_DB_USER="db"
CRAFT_DB_PASSWORD="db"
MAILPIT_SMTP_PORT="1025"
CRAFT_DB_DRIVER="mysql"
CRAFT_DB_PORT="3306"
CRAFT_DB_DATABASE="db"
MAILPIT_SMTP_HOSTNAME="127.0.0.1"
CRAFT_DB_SERVER="db"
CRAFT_DB_USER="db"
CRAFT_WEB_ROOT="/var/www/html/public"
PRIMARY_SITE_URL="https://craft-base-install.local.statik.be"
CRAFT_DB_DATABASE="db"
CRAFT_DB_PASSWORD="db"
MAILPIT_SMTP_HOSTNAME="127.0.0.1"
MAILPIT_SMTP_PORT="1025"
2 changes: 1 addition & 1 deletion .githooks/post-merge
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ check_run() {
}

check_run package.json "yarn install"
check_run tailoff "yarn run dev"
check_run frontend "yarn run dev"
check_run composer.json "ddev composer install"
check_run config/project/project.yaml "ddev craft up"
11 changes: 7 additions & 4 deletions .github/workflows/doctest.yml → .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
# using the `master` branch as the default branch.
push:
branches: [KarelJanVanHaute/issue347]
branches: [master]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -43,18 +43,21 @@ jobs:
cache: npm # or pnpm / yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
- name: Install dependencies in root
run: yarn install # or pnpm install / yarn install / bun install
- name: Install dependencies for docs
working-directory: ./docs
run: yarn install # or pnpm install / yarn install / bun install
- name: Build frontend into docs
working-directory: ./docs
run: yarn docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
run: yarn build # or pnpm docs:build / yarn docs:build / bun run docs:build
- name: Build with VitePress
working-directory: ./docs
run: yarn docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
path: docs/src/.vitepress/dist

# Deployment job
deploy:
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ templates/_site/_snippet/_global/_iconSprite.twig
templates/_site/_snippet/_global/_favicon.twig
public/frontend*/*
/translations
docs/src/.vitepress/dist
docs/.vitepress/dist
docs/.vitepress/cache
docs/src/assets/examples/*
docs/node_modules/*
docs/src/.vitepress/cache/*
docs/src/public/*
docs/.env
storage/logs/*
12 changes: 6 additions & 6 deletions MULTISITE.MD
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ The single base site files are located in subfolders with the name "site". If yo
If you want to rename the site you need to adjust the name or content of the following files/folder.

- templates/\_site
- tailoff/js/site.ts
- tailoff/img/site
- tailoff/css/site
- frontend/js/site.ts
- frontend/img/site
- frontend/css/site
- vite-favicon.config.js
- vite.config.js

Expand Down Expand Up @@ -43,18 +43,18 @@ Make sure the name fits the name you choose in the vite.config.js file.

## JS

Rename the files "tailoff/js/site.ts" and "tailoff/js/site2.ts", or duplicate one. Also adjust the references in the corresponing vite.config.js.
Rename the files "frontend/js/site.ts" and "frontend/js/site2.ts", or duplicate one. Also adjust the references in the corresponing vite.config.js.

## CSS

Rename or duplicate the folder "tailoff/css/site". And adjust the reference in the .ts files.
Rename or duplicate the folder "frontend/css/site". And adjust the reference in the .ts files.

## Headers

Make sure the \_layout.twig files are referencing the correct files in the head.

```
{{ craft.vite.script("tailoff/js/site.ts") }}
{{ craft.vite.script("frontend/js/site.ts") }}
{{ craft.vite.inline("@webroot/favicon/site/webapp.html") }}
```

Expand Down
6 changes: 3 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ yarn watch

**CSS and Javascript**

`tailoff/css` and `tailoff/js`
`frontend/css` and `frontend/js`

**Favicon**
Add an svg in `tailoff/img/` called `favicon.svg` and run
Add an svg in `frontend/img/` called `favicon.svg` and run

```bash

Expand All @@ -161,7 +161,7 @@ yarn favicon
```

**Icons**
Icon go in the folder `tailoff/icons`
Icon go in the folder `frontend/icons`

---

Expand Down
1 change: 1 addition & 0 deletions bitbucket_pipelines_build_frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ nvm install && nvm use
npm install -g yarn
yarn install
yarn prod
yarn ckeditor
5 changes: 5 additions & 0 deletions config/license.key.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
IHXFQTF50SHEH+^WA3IS*O$HT8U=1LRSZGP587O/SXRVAP!D^=
+M2TU48Y73CG^%#YN=/K$ZWG%UHMXGV+SX^US70P^SH432GD*1
KC*WPXCNIX#D2VV6HJPSWW5!=K#K*/WHEA0B+3&9HKNKRIE5DG
TURZ!AR+QA=66HH9$R4DNSYE0ANY4V2KR6N3NZ4T+Z&DE9A*23
!&3IY#D+$BRAXSAUC%I2L/3U&P$ZKA#KI6$FOI99B&OBD69R16
2 changes: 1 addition & 1 deletion config/project/project.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dateModified: 1756977801
dateModified: 1759849244
elementSources:
craft\elements\Entry:
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ altTranslationKeyFormat: null
altTranslationMethod: site
fieldLayouts:
8985b5d5-d4d2-4e77-a044-b0cba33552b7:
cardView:
- 'layoutElement:72d09997-657f-46cc-ab0b-5b48e28bdbfb'
- 'layoutElement:1e9dc273-861f-4698-8e81-099c5675056a'
tabs:
-
elementCondition: null
Expand Down Expand Up @@ -49,11 +52,11 @@ fieldLayouts:
attribute: alt
class: null
cols: null
dateAdded: '2024-10-14T06:42:46+00:00'
dateAdded: '2025-07-10T07:39:55+00:00'
disabled: false
elementCondition: null
id: null
includeInCards: true
includeInCards: false
instructions: 'Alternative text is a textual substitute for images. Screen readers announce the alternative text, but it is also displayed if the image fails to load. Search engines also use alternative text and factor it into their assessment of the page purpose. Use the alternative text to describe what the image means within its context, not what it depicts. Leave empty if the image serves a purely ornamental or decorative purpose.'
label: null
name: null
Expand All @@ -67,7 +70,7 @@ fieldLayouts:
tip: null
title: null
type: craft\fieldlayoutelements\assets\AltField
uid: 613a44f5-6a37-4c31-9640-88cb393cb476
uid: 98be8a9f-0c1f-4fe2-8789-fdf33a33024d
userCondition: null
warning: null
width: 100
Expand Down
4 changes: 2 additions & 2 deletions config/vite.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

$manifestPath = '@webroot/frontend/.vite/manifest.json';
$serverPublic = '/frontend';
$errorEntry = '/tailoff/js/site.ts';
$errorEntry = '/frontend/js/site.ts';

// switch(Craft::$app->getSites()->currentSite->handle){
// case 'fr' :
// $manifestPath = '@webroot/frontend-site2/manifest.json';
// $serverPublic = '/frontend-site2';
// $errorEntry = '/tailoff/js/site2.ts';
// $errorEntry = '/frontend/js/site2.ts';
// break;
// }

Expand Down
1 change: 1 addition & 0 deletions docs/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

7 changes: 7 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Statik Craft Base Install Docs

## How to build

- First run `yarn build`. This will take all the frontend from the frontend folder and build it to the example folder zo all examples work.
- Then run `yarn docs:dev` for local testing.
- If all is done you can run `yarn docs:build` and `yarn docs:preview` to preview the final result.
17 changes: 17 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "docs",
"type": "module",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"build": "vite build",
"docs:dev": "vitepress dev src",
"docs:build": "vitepress build src",
"docs:preview": "vitepress preview src"
},
"devDependencies": {
"vitepress": "^1.6.3"
},
"dependencies": {}
}
52 changes: 52 additions & 0 deletions docs/src/.vitepress/cache/deps/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"hash": "9969b800",
"configHash": "8b872746",
"lockfileHash": "e0c142d9",
"browserHash": "3f9c9830",
"optimized": {
"vue": {
"src": "../../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
"file": "vue.js",
"fileHash": "d9ca7532",
"needsInterop": false
},
"vitepress > @vue/devtools-api": {
"src": "../../../../node_modules/@vue/devtools-api/dist/index.js",
"file": "vitepress___@vue_devtools-api.js",
"fileHash": "f3e8997c",
"needsInterop": false
},
"vitepress > @vueuse/core": {
"src": "../../../../node_modules/@vueuse/core/index.mjs",
"file": "vitepress___@vueuse_core.js",
"fileHash": "670b8f6c",
"needsInterop": false
},
"vitepress > @vueuse/integrations/useFocusTrap": {
"src": "../../../../node_modules/@vueuse/integrations/useFocusTrap.mjs",
"file": "vitepress___@vueuse_integrations_useFocusTrap.js",
"fileHash": "534edfcb",
"needsInterop": false
},
"vitepress > mark.js/src/vanilla.js": {
"src": "../../../../node_modules/mark.js/src/vanilla.js",
"file": "vitepress___mark__js_src_vanilla__js.js",
"fileHash": "7cb96e71",
"needsInterop": false
},
"vitepress > minisearch": {
"src": "../../../../node_modules/minisearch/dist/es/index.js",
"file": "vitepress___minisearch.js",
"fileHash": "ecf7a73a",
"needsInterop": false
}
},
"chunks": {
"chunk-Z5QSWKN2": {
"file": "chunk-Z5QSWKN2.js"
},
"chunk-LW4I4DCF": {
"file": "chunk-LW4I4DCF.js"
}
}
}
3 changes: 3 additions & 0 deletions docs/src/.vitepress/cache/deps/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
Loading