This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class App { | |
constructor (services) { | |
this.services = services; | |
} | |
start () { | |
const { express, db } = this.services; | |
if (!db.models) { | |
db.loadModels(this.services); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const vuedoc = require('@vuedoc/parser'); | |
const config = require('../../src/noah.config'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const jobs = Object.keys(config.components).map((name) => { | |
const component = config.components[name]; | |
const componentPath = component.path ? path.resolve(__dirname, '../../src/', component.path) : '../../src/elements'; | |
return vuedoc.parse({ filename: path.resolve(__dirname, `${componentPath}/${name}.vue`) }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"name": "Button", | |
"description": null, | |
"keywords": [], | |
"slots": [ | |
{ | |
"kind": "slot", | |
"visibility": "public", | |
"description": "", | |
"keywords": [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="component-meta"> | |
<n-box v-if="meta.description">{{ meta.description }}</n-box> | |
<n-module type="demo" class="component-meta"> | |
<div slot="header"></div> | |
<n-tabs :items="tabs"> | |
<component-props slot="props" :data="meta.props"></component-props> | |
<component-slots slot="slots" :data="meta.slots"></component-slots> | |
<component-events slot="events" :data="meta.events"></component-events> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<n-module type="demo"> | |
<div slot="header" class="demo"> | |
<component :is="`demos-${name}`"/> | |
</div> | |
<div class="code"> | |
<codemirror :value="raw" :options="cmOptions"></codemirror> | |
</div> | |
</n-module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default ( | |
{ | |
Vue, // the version of Vue being used in the VuePress app | |
options, // the options for the root Vue instance | |
router, // the router instance for the app | |
siteData, // site metadata | |
}, | |
) => { | |
Vue.component('codemirror', async () => { | |
// This module will export a function configuring codemirror component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import codemirror from 'vue-codemirror/src/codemirror.vue'; | |
export default (config) => { | |
if (config) { | |
if (config.options) { | |
codemirror.props.globalOptions.default = () => config.options; | |
} | |
if (config.events) { | |
codemirror.props.globalEvents.default = () => config.events; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"scripts": { | |
"dev": "nodemon --watch mod -e php,js,css --exec \"php -f ./scripts/reset.php && php -f ./scripts/cache.php\"" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once dirname(dirname(__FILE__)) . "/vendor/autoload.php"; | |
\Elgg\Application::start(); | |
_elgg_services()->simpleCache->invalidate(); | |
_elgg_services()->systemCache->reset(); | |
error_log('Cache has been flushed'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once dirname(dirname(__FILE__)) . "/vendor/autoload.php"; | |
\Elgg\Application::start(); | |
$view_list = _elgg_services()->views->listViews(); | |
$get_processed_view = function($view, $viewtype) { | |
elgg_set_viewtype($viewtype); |