Set up a fresh Statamic site
This commit is contained in:
15
resources/js/components/fieldtypes/ExampleFieldtype.vue
Normal file
15
resources/js/components/fieldtypes/ExampleFieldtype.vue
Normal 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
14
resources/js/cp.js
Normal 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
1
resources/js/site.js
Normal file
@ -0,0 +1 @@
|
||||
// This is all you.
|
||||
Reference in New Issue
Block a user