This file contains hidden or 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
#!/usr/bin/env bash | |
echo "******************************" | |
echo "Setting up Keystone" | |
echo "******************************" | |
echo "*** Define Project" | |
read -p "Name your project (lowercase, default is 'keystone_cms'): " projectName | |
projectName=${projectName:-"keystone_cms"} |
This file contains hidden or 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
var keystone = require('keystone'), | |
// pull in the schemaPermissions lib | |
// rootRequire is a custom function that fixes the path to always be from the root of the application | |
schemaPermissions = rootRequire('lib/schemaPermissions'), | |
Types = keystone.Field.Types; | |
/** | |
* Page Model | |
* ========== | |
*/ |
This file contains hidden or 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
/** | |
* Become an eggs developer, look at cats, work on great projects, increase enjoyment! | |
* @returns {EggsDeveloper} | |
* @constructor | |
*/ | |
var EggsDeveloper = function(){ return this; }; | |
EggsDeveloper.prototype = { | |
startDay: function(){ |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script> | |
window.onload = function(){ | |
var symbol, parent, elements = document.getElementsByTagName("use"); | |
while (elements.length > 0){ |