Set up a fresh Statamic site

This commit is contained in:
2025-11-23 13:41:35 +01:00
commit 618cc0f799
104 changed files with 15130 additions and 0 deletions

View File

@ -0,0 +1,8 @@
title: Asset
fields:
-
handle: alt
field:
display: 'Alt Text'
type: text
instructions: 'Description of the image'

View File

@ -0,0 +1,22 @@
title: Default
fields:
-
handle: content
field:
type: markdown
display: Content
localizable: true
-
handle: author
field:
type: users
display: Author
default: current
localizable: true
max_items: 1
-
handle: template
field:
type: template
display: Template
localizable: true

View File

@ -0,0 +1,29 @@
title: User
fields:
-
handle: name
field:
type: text
display: Name
-
handle: email
field:
type: text
input: email
display: Email Address
-
handle: roles
field:
type: user_roles
width: 50
-
handle: groups
field:
type: user_groups
width: 50
-
handle: avatar
field:
type: assets
max_files: 1
container: assets

1
resources/css/cp.css Normal file
View File

@ -0,0 +1 @@
/* This is all you. */

4
resources/css/site.css Normal file
View File

@ -0,0 +1,4 @@
@import "tailwindcss";
@plugin "@tailwindcss/typography";
@source "../views";
@source "../../content";

View File

@ -0,0 +1,15 @@
<template>
<div class="example-fieldtype-container">
<text-input :value="value" @input="update" />
</div>
</template>
<script>
// Learn more at https://statamic.dev/extending/fieldtypes/
export default {
mixins: [Fieldtype],
data() {
return {}
}
};
</script>

14
resources/js/cp.js Normal file
View File

@ -0,0 +1,14 @@
/**
* When extending the control panel, be sure to uncomment the necessary code for your build process:
* https://statamic.dev/extending/control-panel
*/
/** Example Fieldtype
import ExampleFieldtype from './components/fieldtypes/ExampleFieldtype.vue';
Statamic.booting(() => {
Statamic.$components.register('example-fieldtype', ExampleFieldtype);
});
*/

1
resources/js/site.js Normal file
View File

@ -0,0 +1 @@
// This is all you.

View File

@ -0,0 +1,4 @@
# admin:
# title: Administrators
# roles:
# - admin

View File

@ -0,0 +1,4 @@
# admin:
# title: Administrator
# permissions:
# - super

View File

@ -0,0 +1 @@
{{ content }}

View File

@ -0,0 +1 @@
<p>404 Page not found.</p>

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,15 @@
<!doctype html>
<html lang="{{ site:short_locale }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title ?? site:name }}</title>
{{ vite src="resources/js/site.js|resources/css/site.css" }}
</head>
<body class="bg-slate-100 dark:bg-gray-800 font-sans leading-normal text-slate-800 dark:text-gray-400">
<div class="mx-auto px-2 lg:min-h-screen flex flex-col items-center justify-center">
{{ template_content }}
</div>
</body>
</html>