Reorganization
109
.github/workflows/squash_version_to_main.yml
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
name: Squash merge version branch into main
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
squash-merge-version:
|
||||
name: Conditional squash merge version/* into main
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Determine branch and version
|
||||
id: meta
|
||||
run: |
|
||||
BRANCH="${GITHUB_REF_NAME}"
|
||||
|
||||
echo "Running on branch: $BRANCH"
|
||||
|
||||
if [[ ! "$BRANCH" =~ ^version\/[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9]+)?$ ]]; then
|
||||
echo "This workflow must be run on a branch named version/X.Y.Z or version/X.Y.Z-tag"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
VERSION="${BRANCH#version/}"
|
||||
|
||||
echo "Detected version: $VERSION"
|
||||
|
||||
# prerelease detection
|
||||
if [[ "$VERSION" =~ -(alpha|beta|rc|pre|preview|dev|test) ]]; then
|
||||
echo "Version is prerelease: $VERSION"
|
||||
IS_PRERELEASE="true"
|
||||
else
|
||||
echo "Version is stable: $VERSION"
|
||||
IS_PRERELEASE="false"
|
||||
fi
|
||||
|
||||
echo "branch=$BRANCH" >> "$GITHUB_OUTPUT"
|
||||
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||
echo "is_prerelease=$IS_PRERELEASE" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Create or reuse PR from version branch to main
|
||||
id: cpr
|
||||
uses: peter-evans/create-pull-request@v6
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
head: ${{ steps.meta.outputs.branch }}
|
||||
base: main
|
||||
title: "Merge version ${{ steps.meta.outputs.version }} into main"
|
||||
body: |
|
||||
Automated PR to merge version **${{ steps.meta.outputs.version }}** into **main**.
|
||||
|
||||
- Branch: `${{ steps.meta.outputs.branch }}`
|
||||
- Version: `${{ steps.meta.outputs.version }}`
|
||||
- Prerelease: `${{ steps.meta.outputs.is_prerelease }}`
|
||||
|
||||
This PR was generated by the squash merge workflow.
|
||||
labels: |
|
||||
release
|
||||
version-update
|
||||
|
||||
###########################################################
|
||||
# Only squash merge IF the branch version is NOT prerelease
|
||||
###########################################################
|
||||
- name: Squash merge PR into main (stable only)
|
||||
if: steps.meta.outputs.is_prerelease == 'false'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
REPO: ${{ github.repository }}
|
||||
VERSION: ${{ steps.meta.outputs.version }}
|
||||
PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}
|
||||
run: |
|
||||
if [ -z "$PR_NUMBER" ]; then
|
||||
echo "No pull request number returned. Cannot squash merge."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Performing squash merge PR #${PR_NUMBER} into main"
|
||||
|
||||
curl -sS -X PUT \
|
||||
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
"https://api.github.com/repos/${REPO}/pulls/${PR_NUMBER}/merge" \
|
||||
-d "$(jq -n \
|
||||
--arg method "squash" \
|
||||
--arg title "Squash merge version ${VERSION} into main" \
|
||||
'{merge_method: $method, commit_title: $title}')"
|
||||
|
||||
###########################################################
|
||||
# If prerelease, annotate and skip squash
|
||||
###########################################################
|
||||
- name: Skip squash (prerelease detected)
|
||||
if: steps.meta.outputs.is_prerelease == 'true'
|
||||
run: |
|
||||
echo "Prerelease version detected. PR created but squash merge intentionally skipped."
|
||||
|
||||
- name: Optional delete version branch after merge
|
||||
if: steps.meta.outputs.is_prerelease == 'false'
|
||||
env:
|
||||
BRANCH: ${{ steps.meta.outputs.branch }}
|
||||
run: |
|
||||
echo "Deleting branch ${BRANCH} after squash merge"
|
||||
git push origin --delete "${BRANCH}" || echo "Branch already deleted or cannot delete"
|
||||
80
scripts/update_changelog.sh
Normal file
@@ -0,0 +1,80 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# scripts/update_changelog.sh
|
||||
#
|
||||
# Purpose:
|
||||
# - Apply the MokoWaaS-Brand CHANGELOG template entry for a given version.
|
||||
# - Insert a new header at the top of CHANGELOG.md, immediately after "# Changelog".
|
||||
# - Avoid duplicates if an entry for the version already exists.
|
||||
# - Preserve the rest of the file verbatim.
|
||||
#
|
||||
# Usage:
|
||||
# ./scripts/update_changelog.sh <VERSION>
|
||||
#
|
||||
# Example:
|
||||
# ./scripts/update_changelog.sh 01.05.00
|
||||
|
||||
VERSION="${1:-}"
|
||||
|
||||
if [[ -z "${VERSION}" ]]; then
|
||||
echo "ERROR: Version argument is required. Usage: scripts/update_changelog.sh <VERSION>" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CHANGELOG_FILE="CHANGELOG.md"
|
||||
|
||||
DATE_UTC="$(date -u +"%Y-%m-%d")"
|
||||
HEADER="## ${VERSION} - ${DATE_UTC}"
|
||||
|
||||
if [[ ! -f "${CHANGELOG_FILE}" ]]; then
|
||||
{
|
||||
echo "# Changelog"
|
||||
echo
|
||||
} > "${CHANGELOG_FILE}"
|
||||
fi
|
||||
|
||||
# Do not duplicate existing entries
|
||||
if grep -qE "^##[[:space:]]+${VERSION}[[:space:]]+-[[:space:]]+" "${CHANGELOG_FILE}"; then
|
||||
echo "CHANGELOG.md already contains an entry for ${VERSION}. No changes made."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
TMP_FILE="${CHANGELOG_FILE}.tmp"
|
||||
|
||||
# Insert after the first '# Changelog' line.
|
||||
# If '# Changelog' is missing, prepend it.
|
||||
if grep -qE "^# Changelog$" "${CHANGELOG_FILE}"; then
|
||||
awk -v header="${HEADER}" '
|
||||
BEGIN { inserted=0 }
|
||||
{
|
||||
print
|
||||
if (!inserted && $0 ~ /^# Changelog$/) {
|
||||
print ""
|
||||
print header
|
||||
print ""
|
||||
inserted=1
|
||||
}
|
||||
}
|
||||
END {
|
||||
if (!inserted) {
|
||||
# fallback: append at end
|
||||
print ""
|
||||
print header
|
||||
print ""
|
||||
}
|
||||
}
|
||||
' "${CHANGELOG_FILE}" > "${TMP_FILE}"
|
||||
else
|
||||
{
|
||||
echo "# Changelog"
|
||||
echo
|
||||
echo "${HEADER}"
|
||||
echo
|
||||
cat "${CHANGELOG_FILE}"
|
||||
} > "${TMP_FILE}"
|
||||
fi
|
||||
|
||||
mv "${TMP_FILE}" "${CHANGELOG_FILE}"
|
||||
|
||||
echo "Applied changelog header: ${HEADER}"
|
||||
42
scripts/validate_manifest.sh
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
MANIFEST="src/mokowaasbrand.xml"
|
||||
|
||||
echo "Validating Joomla manifest: $MANIFEST"
|
||||
|
||||
if [ ! -f "$MANIFEST" ]; then
|
||||
echo "ERROR: Manifest not found: $MANIFEST"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check XML syntax
|
||||
if ! xmllint --noout "$MANIFEST"; then
|
||||
echo "ERROR: Manifest XML is not valid."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Required fields
|
||||
REQUIRED_NODES=(
|
||||
"//extension"
|
||||
"//name"
|
||||
"//version"
|
||||
"//author"
|
||||
"//creationDate"
|
||||
)
|
||||
|
||||
for NODE in "${REQUIRED_NODES[@]}"; do
|
||||
if ! xmllint --xpath "$NODE" "$MANIFEST" > /dev/null 2>&1; then
|
||||
echo "ERROR: Required manifest node missing: $NODE"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
VERSION=$(xmllint --xpath "string(//version)" "$MANIFEST")
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "ERROR: Version node is empty in manifest."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Manifest OK. Version: $VERSION"
|
||||
25
scripts/verify_changelog.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "Running changelog verifier"
|
||||
|
||||
BRANCH="${GITHUB_REF_NAME}"
|
||||
|
||||
if [[ ! "$BRANCH" =~ ^version/ ]]; then
|
||||
echo "Not on a version branch. Skipping changelog verification."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
VERSION="${BRANCH#version/}"
|
||||
|
||||
if [ ! -f "CHANGELOG.md" ]; then
|
||||
echo "ERROR: CHANGELOG.md does not exist."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! grep -q "$VERSION" CHANGELOG.md; then
|
||||
echo "ERROR: CHANGELOG.md missing entry for version $VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Changelog contains correct version section."
|
||||
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 510 B After Width: | Height: | Size: 510 B |
|
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 459 B |
|
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 387 B |
|
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 504 B |
|
Before Width: | Height: | Size: 979 B After Width: | Height: | Size: 979 B |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
237
src/templateDetails.xml
Normal file
@@ -0,0 +1,237 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||
|
||||
This file is part of a Moko Consulting project.
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||
|
||||
# FILE INFORMATION
|
||||
DEFGROUP: Joomla.Template
|
||||
INGROUP: Moko-Cassiopeia
|
||||
REPO: https://github.com/mokoconsulting-tech/moko-cassiopeia
|
||||
PATH: ./templates/moko-cassiopeia/templateDetails.xml
|
||||
VERSION: 03.00.00
|
||||
BRIEF: Template manifest XML file for Moko-Cassiopeia
|
||||
-->
|
||||
<extension type="template" client="site" method="upgrade">
|
||||
<updateservers>
|
||||
<server type="extension" name="Moko Consulting">https://raw.githubusercontent.com/mokoconsulting-tech/MokoUpdates/refs/heads/main/joomla/moko-cassiopeia/updates.xml</server>
|
||||
</updateservers>
|
||||
<name>moko-cassiopeia</name>
|
||||
<version>03.00</version>
|
||||
<creationDate>2025-12-09</creationDate>
|
||||
<author>Jonathan Miller || Moko Consulting</author>
|
||||
<authorEmail>hello@mokoconsulting.tech</authorEmail>
|
||||
<copyright>(C)GNU General Public License Version 3 - 2025 Moko Consulting</copyright>
|
||||
<description>TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION</description>
|
||||
<inheritable>1</inheritable>
|
||||
<files>
|
||||
<filename>component.php</filename>
|
||||
<filename>error.php</filename>
|
||||
<filename>index.php</filename>
|
||||
<filename>joomla.asset.json</filename>
|
||||
<filename>offline.php</filename>
|
||||
<filename>templateDetails.xml</filename>
|
||||
<folder>html</folder>
|
||||
</files>
|
||||
<stylesheets>
|
||||
<stylesheet>media/templates/site/moko-cassiopeia/css/editor.css</stylesheet>
|
||||
</stylesheets>
|
||||
<media destination="templates/site/moko-cassiopeia" folder="media">
|
||||
<folder>js</folder>
|
||||
<folder>css</folder>
|
||||
<folder>images</folder>
|
||||
<folder>fonts</folder>
|
||||
<folder>vendor</folder>
|
||||
</media>
|
||||
<positions>
|
||||
<position>topbar</position>
|
||||
<position>below-topbar</position>
|
||||
<position>below-logo</position>
|
||||
<position>menu</position>
|
||||
<position>search</position>
|
||||
<position>banner</position>
|
||||
<position>top-a</position>
|
||||
<position>top-b</position>
|
||||
<position>main-top</position>
|
||||
<position>main-bottom</position>
|
||||
<position>breadcrumbs</position>
|
||||
<position>sidebar-left</position>
|
||||
<position>sidebar-right</position>
|
||||
<position>bottom-a</position>
|
||||
<position>bottom-b</position>
|
||||
<position>footer-menu</position>
|
||||
<position>footer</position>
|
||||
<position>debug</position>
|
||||
<position>offline-header</position>
|
||||
<position>offline</position>
|
||||
<position>offline-footer</position>
|
||||
<position>drawer-left</position>
|
||||
<position>drawer-right</position>
|
||||
</positions>
|
||||
<languages folder="language">
|
||||
<language tag="en-GB">en-GB/tpl_moko-cassiopeia.ini</language>
|
||||
<language tag="en-GB">en-GB/tpl_moko-cassiopeia.sys.ini</language>
|
||||
<language tag="en-US">en-US/tpl_moko-cassiopeia.ini</language>
|
||||
<language tag="en-US">en-US/tpl_moko-cassiopeia.sys.ini</language>
|
||||
</languages>
|
||||
<config>
|
||||
<fields name="params">
|
||||
<!-- Advanced tab (non-theme/system options only) -->
|
||||
<fieldset name="advanced">
|
||||
<field name="developmentmode" type="radio" label="TPL_MOKO-CASSIOPEIA_DEVELOPMENTMODE_LABEL" description="TPL_MOKO-CASSIOPEIA_DEVELOPMENTMODE_DESC" default="1" layout="joomla.form.field.radio.switcher" filter="boolean">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="fluidContainer" type="radio" layout="joomla.form.field.radio.switcher" default="0" label="TPL_MOKO-CASSIOPEIA_FLUID_LABEL">
|
||||
<option value="0">TPL_MOKO-CASSIOPEIA_STATIC</option>
|
||||
<option value="1">TPL_MOKO-CASSIOPEIA_FLUID</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
|
||||
<!-- Google tab -->
|
||||
<fieldset name="google">
|
||||
<field name="googletagmanager" type="radio" label="TPL_MOKO-CASSIOPEIA_GOOGLETAGMANAGER_LABEL" description="TPL_MOKO-CASSIOPEIA_GOOGLETAGMANAGER_DESC" layout="joomla.form.field.radio.switcher" filter="boolean">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="googletagmanagerid" type="text" default="" label="TPL_MOKO-CASSIOPEIA_GOOGLETAGMANAGERID_LABEL" description="TPL_MOKO-CASSIOPEIA_GOOGLETAGMANAGERID_DESC" filter="string" showon="googletagmanager:1" />
|
||||
<field name="googleanalytics" type="radio" label="TPL_MOKO-CASSIOPEIA_GOOGLEANALYTICS_LABEL" description="TPL_MOKO-CASSIOPEIA_GOOGLEANALYTICS_DESC" layout="joomla.form.field.radio.switcher" filter="boolean">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="googleanalyticsid" type="text" default="" label="TPL_MOKO-CASSIOPEIA_GOOGLEANALYTICSID_LABEL" description="TPL_MOKO-CASSIOPEIA_GOOGLEANALYTICSID_DESC" filter="string" showon="googleanalytics:1" />
|
||||
</fieldset>
|
||||
|
||||
<!-- Custom Code tab -->
|
||||
<fieldset name="custom_head" label="TPL_MOKO-CASSIOPEIA_CUSTOM_CODE_FIELDSET">
|
||||
<field name="custom_head_start" type="textarea" default="" label="TPL_MOKO-CASSIOPEIA_CUSTOM_HEAD_START_LABEL" description="TPL_MOKO-CASSIOPEIA_CUSTOM_HEAD_START_DESC" filter="raw" />
|
||||
<field name="custom_head_end" type="textarea" default="" label="TPL_MOKO-CASSIOPEIA_CUSTOM_HEAD_END_LABEL" description="TPL_MOKO-CASSIOPEIA_CUSTOM_HEAD_END_DESC" filter="raw" />
|
||||
</fieldset>
|
||||
|
||||
<!-- Drawers tab -->
|
||||
<fieldset name="drawers">
|
||||
<field name="drawerLeftIcon" type="text" default="fa-solid fa-chevron-right" label="TPL_MOKO-CASSIOPEIA_DRAWER_LEFT_ICON_LABEL" description="TPL_MOKO-CASSIOPEIA_DRAWER_LEFT_ICON_DESC" filter="string" />
|
||||
<field name="drawerRightIcon" type="text" default="fa-solid fa-chevron-left" label="TPL_MOKO-CASSIOPEIA_DRAWER_RIGHT_ICON_LABEL" description="TPL_MOKO-CASSIOPEIA_DRAWER_RIGHT_ICON_DESC" filter="string" />
|
||||
</fieldset>
|
||||
|
||||
<!-- THEME TAB (all style/theme settings grouped) -->
|
||||
<fieldset name="theme" label="TPL_MOKO_THEME_FIELDSET">
|
||||
|
||||
<!-- General -->
|
||||
<field name="theme_sep_general" type="spacer" label="General" hr="false" class="text fw-bold" />
|
||||
<field name="theme_enabled" type="radio" default="1"
|
||||
label="TPL_MOKO_THEME_ENABLED" description="TPL_MOKO_THEME_ENABLED_DESC"
|
||||
layout="joomla.form.field.radio.switcher" filter="boolean">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="theme_control_type" type="list" default="radios"
|
||||
label="TPL_MOKO_THEME_CONTROL_TYPE" description="TPL_MOKO_THEME_CONTROL_TYPE_DESC">
|
||||
<option value="switch">Switch (Light↔Dark)</option>
|
||||
<option value="radios">Radios (Light/Dark/System)</option>
|
||||
<option value="none">No visible control</option>
|
||||
</field>
|
||||
<field name="theme_default_choice" type="list" default="system"
|
||||
label="TPL_MOKO_THEME_DEFAULT_CHOICE" description="TPL_MOKO_THEME_DEFAULT_CHOICE_DESC">
|
||||
<option value="system">System</option>
|
||||
<option value="light">Light</option>
|
||||
<option value="dark">Dark</option>
|
||||
</field>
|
||||
<field name="theme_auto_dark" type="radio" default="0"
|
||||
label="TPL_MOKO_THEME_AUTO_DARK" description="TPL_MOKO_THEME_AUTO_DARK_DESC"
|
||||
layout="joomla.form.field.radio.switcher" filter="boolean">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="theme_meta_color_scheme" type="radio" default="1"
|
||||
label="TPL_MOKO_THEME_META_COLOR_SCHEME" description="TPL_MOKO_THEME_META_COLOR_SCHEME_DESC"
|
||||
layout="joomla.form.field.radio.switcher" filter="boolean">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="theme_meta_theme_color" type="radio" default="1"
|
||||
label="TPL_MOKO_THEME_META_THEME_COLOR" description="TPL_MOKO_THEME_META_THEME_COLOR_DESC"
|
||||
layout="joomla.form.field.radio.switcher" filter="boolean">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="theme_bridge_bs_aria" type="radio" default="1"
|
||||
label="TPL_MOKO_THEME_BRIDGE" description="TPL_MOKO_THEME_BRIDGE_DESC"
|
||||
layout="joomla.form.field.radio.switcher" filter="boolean">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
|
||||
<!-- Variables & Palettes -->
|
||||
<field name="theme_sep_vars" type="spacer" label="Variables & Palettes" hr="false" class="text fw-bold" />
|
||||
<field name="colorLightName" type="list" label="TPL_MOKO-CASSIOPEIA_COLOR_LIGHT_NAME_LABEL" default="colors_standard">
|
||||
<option value="colors_standard">TPL_MOKO-CASSIOPEIA_COLOR_NAME_STANDARD</option>
|
||||
<option value="colors_alternative">TPL_MOKO-CASSIOPEIA_COLOR_NAME_ALTERNATIVE</option>
|
||||
<option value="colors_custom">TPL_MOKO-CASSIOPEIA_COLOR_NAME_CUSTOM</option>
|
||||
</field>
|
||||
<field name="colorDarkName" type="list" label="TPL_MOKO-CASSIOPEIA_COLOR_DARK_NAME_LABEL" default="colors_standard">
|
||||
<option value="colors_standard">TPL_MOKO-CASSIOPEIA_COLOR_NAME_STANDARD</option>
|
||||
<option value="colors_alternative">TPL_MOKO-CASSIOPEIA_COLOR_NAME_ALTERNATIVE</option>
|
||||
<option value="colors_custom">TPL_MOKO-CASSIOPEIA_COLOR_NAME_CUSTOM</option>
|
||||
</field>
|
||||
|
||||
<!-- Typography -->
|
||||
<field name="theme_sep_typo" type="spacer" label="Typography" hr="false" class="text fw-bold" />
|
||||
<field name="useFontScheme" type="groupedlist" label="TPL_MOKO-CASSIOPEIA_FONT_LABEL" default="0">
|
||||
<option value="0">JNONE</option>
|
||||
<group label="TPL_MOKO-CASSIOPEIA_FONT_GROUP_WEB">
|
||||
<option value="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@100;300;400;700&display=swap">Fira Sans (web)</option>
|
||||
<option value="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@100;300;400;700&family=Roboto:wght@100;300;400;700&display=swap">Roboto + Noto Sans (web)</option>
|
||||
</group>
|
||||
</field>
|
||||
<field name="noteFontScheme" type="note" description="TPL_MOKO-CASSIOPEIA_FONT_NOTE_TEXT" class="alert alert-warning" />
|
||||
|
||||
<!-- Branding & Icons -->
|
||||
<field name="theme_sep_brand" type="spacer" label="Branding & Icons" hr="false" class="text fw-bold" />
|
||||
<field name="brand" type="radio" label="TPL_MOKO-CASSIOPEIA_BRAND_LABEL" default="1" layout="joomla.form.field.radio.switcher" filter="boolean">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="logoFile" type="media" default="media/templates/site/moko-cassiopeia/images/logo.svg" label="TPL_MOKO-CASSIOPEIA_LOGO_LABEL" showon="brand:1" />
|
||||
<field name="siteTitle" type="text" default="" label="TPL_MOKO-CASSIOPEIA_TITLE" filter="string" showon="brand:1" />
|
||||
<field name="siteDescription" type="text" default="" label="TPL_MOKO-CASSIOPEIA_TAGLINE_LABEL" description="TPL_MOKO-CASSIOPEIA_TAGLINE_DESC" filter="string" showon="brand:1" />
|
||||
<field name="faKitCode" type="text" default="" label="TPL_MOKO-CASSIOPEIA_FAKITCODE_LABEL" description="TPL_MOKO-CASSIOPEIA_FA6KITCODE_DESC" filter="string" />
|
||||
|
||||
<!-- Header & Navigation UI -->
|
||||
<field name="theme_sep_header" type="spacer" label="Header & Navigation" hr="false" class="text fw-bold" />
|
||||
<field name="stickyHeader" type="radio" label="TPL_MOKO-CASSIOPEIA_STICKY_LABEL" layout="joomla.form.field.radio.switcher" default="0" filter="integer">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="backTop" type="radio" label="TPL_MOKO-CASSIOPEIA_BACKTOTOP_LABEL" layout="joomla.form.field.radio.switcher" default="0" filter="integer">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
|
||||
<!-- Toggle UI -->
|
||||
<field name="theme_sep_toggle" type="spacer" label="Theme Toggle UI" hr="false" class="text fw-bold" />
|
||||
<field name="theme_fab_enabled" type="radio" default="1"
|
||||
label="TPL_MOKO_THEME_FAB_ENABLED" description="TPL_MOKO_THEME_FAB_ENABLED_DESC"
|
||||
layout="joomla.form.field.radio.switcher" filter="boolean">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="theme_fab_pos" type="list" default="br"
|
||||
label="TPL_MOKO_THEME_FAB_POS" description="TPL_MOKO_THEME_FAB_POS_DESC">
|
||||
<option value="br">Bottom-right</option>
|
||||
<option value="bl">Bottom-left</option>
|
||||
<option value="tr">Top-right</option>
|
||||
<option value="tl">Top-left</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
</fields>
|
||||
</config>
|
||||
</extension>
|
||||
393
src/templates/moko-cassiopeia/joomla.asset.json
Normal file
@@ -0,0 +1,393 @@
|
||||
<<<<<<< Updated upstream
|
||||
/*
|
||||
Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||
|
||||
This file is part of a Moko Consulting project.
|
||||
|
||||
SPDX-LICENSE-IDENTIFIER: GPL-3.0-or-later
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License (./LICENSE.md).
|
||||
|
||||
FILE INFORMATION
|
||||
DEFGROUP: Joomla.Template.Site
|
||||
INGROUP: Moko-Cassiopeia.Template.Assets
|
||||
REPO: https://github.com/mokoconsulting-tech/moko-cassiopeia
|
||||
PATH: ./media/templates/site/moko-cassiopeia/joomla.asset.json
|
||||
VERSION: 03.00.00
|
||||
BRIEF: Joomla asset registry for Moko-Cassiopeia
|
||||
*/
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json",
|
||||
"name": "moko-cassiopeia",
|
||||
"description": "Moko-Cassiopeia template assets",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"x-header": {
|
||||
"copyright_year": 2025,
|
||||
"author": "Jonathan Miller",
|
||||
"owner": "Moko Consulting",
|
||||
"contact": "hello@mokoconsulting.tech",
|
||||
"project": "Moko-Cassiopeia Template",
|
||||
"spdx_license": "GPL-3.0-or-later",
|
||||
"notice": "This file is part of a Moko Consulting project.",
|
||||
<<<<<<< Updated upstream
|
||||
"disclaimer": "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/."
|
||||
"repo": "https://github.com/mokoconsulting-tech/moko-cassiopeia"
|
||||
},
|
||||
|
||||
=======
|
||||
"disclaimer": "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.",
|
||||
"repo": "https://github.com/mokoconsulting-tech/moko-cassiopeia",
|
||||
"file_information": {
|
||||
"defgroup": "Joomla.Template.Site",
|
||||
"ingroup": "Moko-Cassiopeia.Template.Assets",
|
||||
"path": "./media/templates/site/moko-cassiopeia/joomla.asset.json",
|
||||
"version": "03.00.00",
|
||||
"brief": "Joomla asset registry for Moko-Cassiopeia"
|
||||
}
|
||||
},
|
||||
>>>>>>> Stashed changes
|
||||
"assets": [
|
||||
{
|
||||
"name": "template.base",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/template.css",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "media": "all" }
|
||||
=======
|
||||
"attributes": {"media": "all"}
|
||||
>>>>>>> Stashed changes
|
||||
},
|
||||
{
|
||||
"name": "template.base.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/template.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "template.user",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/user.css",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "media": "all" }
|
||||
=======
|
||||
"attributes": {"media": "all"}
|
||||
>>>>>>> Stashed changes
|
||||
},
|
||||
{
|
||||
"name": "template.user.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/user.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "template.editor",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/editor.css",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "media": "all" }
|
||||
=======
|
||||
"attributes": {"media": "all"}
|
||||
>>>>>>> Stashed changes
|
||||
},
|
||||
{
|
||||
"name": "template.editor.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/editor.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "vendor.bootstrap-toc",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/afeld/bootstrap-toc.min.css",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "media": "all" }
|
||||
=======
|
||||
"attributes": {"media": "all"}
|
||||
>>>>>>> Stashed changes
|
||||
},
|
||||
{
|
||||
"name": "vendor.bootstrap-toc.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/afeld/bootstrap-toc.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "template.light.colors_standard",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/colors/light/colors_standard.css"
|
||||
},
|
||||
{
|
||||
"name": "template.light.colors_standard.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/colors/light/colors_standard.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "template.light.colors_alternative",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/colors/light/colors_alternative.css"
|
||||
},
|
||||
{
|
||||
"name": "template.light.colors_alternative.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/colors/light/colors_alternative.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "template.light.colors_custom",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/colors/light/colors_custom.css"
|
||||
},
|
||||
{
|
||||
"name": "template.light.colors_custom.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/colors/light/colors_custom.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "template.dark.colors_standard",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/colors/dark/colors_standard.css"
|
||||
},
|
||||
{
|
||||
"name": "template.dark.colors_standard.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/colors/dark/colors_standard.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "template.dark.colors_alternative",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/colors/dark/colors_alternative.css"
|
||||
},
|
||||
{
|
||||
"name": "template.dark.colors_alternative.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/colors/dark/colors_alternative.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "template.dark.colors_custom",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/colors/dark/colors_custom.css"
|
||||
},
|
||||
{
|
||||
"name": "template.dark.colors_custom.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/css/colors/dark/colors_custom.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "template.js",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/moko-cassiopeia/js/template.js",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "defer": true }
|
||||
=======
|
||||
"attributes": {"defer": true}
|
||||
>>>>>>> Stashed changes
|
||||
},
|
||||
{
|
||||
"name": "template.js.min",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/moko-cassiopeia/js/template.min.js",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "defer": true }
|
||||
},
|
||||
|
||||
=======
|
||||
"attributes": {"defer": true}
|
||||
},
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "theme-init.js",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/moko-cassiopeia/js/theme-init.js",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "defer": true }
|
||||
=======
|
||||
"attributes": {"defer": true}
|
||||
>>>>>>> Stashed changes
|
||||
},
|
||||
{
|
||||
"name": "theme-init.min.js",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/moko-cassiopeia/js/theme-init.min.js",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "defer": true }
|
||||
},
|
||||
|
||||
=======
|
||||
"attributes": {"defer": true}
|
||||
},
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "darkmode-toggle.js",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/moko-cassiopeia/js/darkmode-toggle.js",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "defer": true }
|
||||
=======
|
||||
"attributes": {"defer": true}
|
||||
>>>>>>> Stashed changes
|
||||
},
|
||||
{
|
||||
"name": "darkmode-toggle.min.js",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/moko-cassiopeia/js/darkmode-toggle.min.js",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "defer": true }
|
||||
},
|
||||
|
||||
=======
|
||||
"attributes": {"defer": true}
|
||||
},
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "gtm.js",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/moko-cassiopeia/js/gtm.js",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "defer": true }
|
||||
=======
|
||||
"attributes": {"defer": true}
|
||||
>>>>>>> Stashed changes
|
||||
},
|
||||
{
|
||||
"name": "gtm.min.js",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/moko-cassiopeia/js/gtm.min.js",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "defer": true }
|
||||
},
|
||||
|
||||
=======
|
||||
"attributes": {"defer": true}
|
||||
},
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "vendor.bootstrap-toc.js",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/afeld/bootstrap-toc.min.js",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "defer": true }
|
||||
=======
|
||||
"attributes": {"defer": true}
|
||||
>>>>>>> Stashed changes
|
||||
},
|
||||
{
|
||||
"name": "vendor.bootstrap-toc.js.min",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/afeld/bootstrap-toc.min.js",
|
||||
<<<<<<< Updated upstream
|
||||
"attributes": { "defer": true }
|
||||
},
|
||||
|
||||
=======
|
||||
"attributes": {"defer": true}
|
||||
},
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "vendor.fa7free.all",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/fa7free/css/all.css"
|
||||
},
|
||||
{
|
||||
"name": "vendor.fa7free.all.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/fa7free/css/all.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "vendor.fa7free.brands",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/fa7free/css/brands.css"
|
||||
},
|
||||
{
|
||||
"name": "vendor.fa7free.brands.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/fa7free/css/brands.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "vendor.fa7free.fontawesome",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/fa7free/css/fontawesome.css"
|
||||
},
|
||||
{
|
||||
"name": "vendor.fa7free.fontawesome.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/fa7free/css/fontawesome.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "vendor.fa7free.regular",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/fa7free/css/regular.css"
|
||||
},
|
||||
{
|
||||
"name": "vendor.fa7free.regular.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/fa7free/css/regular.min.css"
|
||||
},
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
"name": "vendor.fa7free.solid",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/fa7free/css/solid.css"
|
||||
},
|
||||
{
|
||||
"name": "vendor.fa7free.solid.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/moko-cassiopeia/vendor/fa7free/css/solid.min.css"
|
||||
}
|
||||
]
|
||||
}
|
||||