Skip to content

Commit 9f29f38

Browse files
committed
Stash
1 parent e1a02db commit 9f29f38

File tree

505 files changed

+28260
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

505 files changed

+28260
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<ul class="c-list c-list--x flex-grow">
3+
<li v-for="link in links" :key="link.slug">
4+
<a v-bind="link.attributes">{{ link.title }}</a>
5+
6+
<admin-sections :sections="link.sections"></admin-sections>
7+
</li>
8+
</ul>
9+
</template>
10+
11+
<script>
12+
export default {
13+
props: {
14+
links: Array,
15+
},
16+
ready() {
17+
console.log("Navigation ready.");
18+
}
19+
};
20+
</script>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<template>
2+
<ul>
3+
<li v-for="section in sections" :key="section.slug">
4+
<a :href="section.attributes.href" :class="{'active':section.active}">
5+
<!-- {!! $section->icon() !!} -->
6+
{{ section.title }}
7+
8+
<!-- @if ($section->getLabel())
9+
<span class="tag {{ $section->getContext() }}">
10+
{{ $section->getLabel() }}
11+
</span>
12+
@endif -->
13+
</a>
14+
</li>
15+
</ul>
16+
</template>
17+
18+
<script>
19+
export default {
20+
props: {
21+
sections: Array,
22+
},
23+
ready() {
24+
console.log("Sections ready.");
25+
}
26+
};
27+
</script>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<template>
2+
<nav class="shortcut__items">
3+
<div v-for="(shortcut, index) in shortcuts" :key="index" class="shortcut__item">
4+
<a :href="shortcut.attributes.href" class="font-bold uppercase text-xs px-4 py-2 rounded shadow hover:shadow-md outline-none focus:outline-none mr-1 mb-1">
5+
{{ shortcut.title }}
6+
</a>
7+
</div>
8+
</nav>
9+
</template>
10+
11+
<script>
12+
export default {
13+
props: {
14+
shortcuts: Array,
15+
},
16+
ready() {
17+
console.log("Navigation ready.");
18+
}
19+
};
20+
</script>
21+
22+
<style lang="scss">
23+
.shortcut__item {
24+
display: inline-block;
25+
26+
a {
27+
padding: 5px;
28+
}
29+
}
30+
</style>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<template>
2+
<div id="sidebar">
3+
<ul v-for="link in links" :key="link.slug">
4+
<li v-for="section in link.sections" :key="section.slug">
5+
<a :href="section.attributes.href" :class="{'active':section.active}">
6+
<!-- {!! $section->icon() !!} -->
7+
{{ section.title }}
8+
9+
<!-- @if ($section->getLabel())
10+
<span class="tag {{ $section->getContext() }}">
11+
{{ $section->getLabel() }}
12+
</span>
13+
@endif -->
14+
</a>
15+
</li>
16+
</ul>
17+
</div>
18+
</template>
19+
20+
<script>
21+
export default {
22+
props: {
23+
links: Array,
24+
},
25+
ready() {
26+
console.log("Sidebar ready.");
27+
}
28+
};
29+
</script>

resources/assets/js/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import {FlowThemeServiceProvider} from './src/FlowThemeServiceProvider';
2+
3+
window.FlowThemeServiceProvider = FlowThemeServiceProvider;
4+
5+
window.streams.app.register(FlowThemeServiceProvider);
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Navigation from '../components/Navigation'
2+
import Shortcuts from '../components/Shortcuts'
3+
import Sections from '../components/Sections'
4+
import Sidebar from '../components/Sidebar'
5+
6+
import {ServiceProvider} from '@anomaly/streams-platform'
7+
8+
export class FlowThemeServiceProvider extends ServiceProvider {
9+
boot(){
10+
Vue.component('admin-navigation', Navigation);
11+
Vue.component('admin-shortcuts', Shortcuts);
12+
Vue.component('admin-sections', Sections);
13+
Vue.component('admin-sidebar', Sidebar);
14+
}
15+
}

resources/config/addons.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Addon Customization
8+
|--------------------------------------------------------------------------
9+
|
10+
| Here you can customize and
11+
| extend the addon loader.
12+
|
13+
*/
14+
15+
/**
16+
* An array of disabled
17+
* addons by handle.
18+
*/
19+
'disabled' => [
20+
//'anomaly.module.users',
21+
],
22+
];

resources/config/cp.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Control Panel Customization
8+
|--------------------------------------------------------------------------
9+
|
10+
| Support for control panel configuration is
11+
| currently limited to the Streams module.
12+
|
13+
*/
14+
15+
/**
16+
* This is the URI prefix
17+
* for the control panel.
18+
*/
19+
'prefix' => env('STREAMS_CP_PREFIX', 'admin'),
20+
21+
/**
22+
* Define additional CP middleware.
23+
*/
24+
'middleware' => [
25+
//\App\Http\Middleware\RickRoll::class,
26+
],
27+
];

resources/config/images.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Image Configuration
8+
|--------------------------------------------------------------------------
9+
|
10+
| Configure core image service.
11+
|
12+
*/
13+
14+
'images' => [
15+
16+
/**
17+
* Initial image path hints.
18+
*/
19+
'paths' => [
20+
'unsplash' => 'https://source.unsplash.com',
21+
],
22+
],
23+
];

resources/config/sources.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Source Configuration
8+
|--------------------------------------------------------------------------
9+
|
10+
| Configure Stream sources.
11+
|
12+
*/
13+
14+
'sources' => [
15+
16+
'default' => env('STREAMS_SOURCE', 'filebase'),
17+
18+
'types' => [
19+
20+
'filebase' => [
21+
22+
'format' => env('STREAMS_SOURCE_FORMAT', 'md'),
23+
//'path' => env('STREAMS_SOURCE_PATH', 'streams/data'),
24+
25+
'formats' => [
26+
'json' => \Filebase\Format\Json::class,
27+
'yaml' => \Filebase\Format\Yaml::class,
28+
'md' => \Anomaly\Streams\Platform\Criteria\Format\Markdown::class,
29+
],
30+
],
31+
],
32+
],
33+
];

resources/config/system.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| System Configuration
8+
|--------------------------------------------------------------------------
9+
|
10+
| Configure core behavior.
11+
|
12+
*/
13+
14+
'system' => [
15+
16+
/**
17+
* Force the application
18+
* to run over HTTPS.
19+
*/
20+
'force_ssl' => false,
21+
],
22+
23+
];

resources/dist/css/login.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/dist/css/theme.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

0 commit comments

Comments
 (0)