Created
May 15, 2014 15:58
-
-
Save topherfangio/2e2292d6316aeb2d81ed to your computer and use it in GitHub Desktop.
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
# my_project/sc_config | |
var craft = BT.AppBuilder.create({ | |
path: 'apps/craft', | |
frameworks: ['firecore', 'core'], | |
theme: 'scimple_theme', | |
indexHtml: function () { | |
return this.renderIndexHtml(this).replace("<head>", "<head><link href='//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css' rel='stylesheet'>"); | |
}.property() | |
}); | |
BT.serverConfig = { | |
host: "localhost", | |
port: 8080, | |
localOnly: true | |
}; |
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
# my_project/apps/craft/theme.js | |
Craft.Theme = Scimple.Theme.create({ | |
name: 'craft' | |
}); | |
// SproutCore needs to know that your app's theme exists | |
SC.Theme.addTheme(Craft.Theme); | |
// Setting it as the default theme makes every pane SproutCore | |
// creates default to this theme unless otherwise specified. | |
SC.defaultTheme = 'craft'; |
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
# my_project/themes/scimple/sc_config | |
BT.addTheme(BT.Theme.extend({ | |
ref: "scimple_theme", | |
cssName: "scimple", | |
path: dirname() + "themes/scimple", | |
dependencies: ["sproutcore:empty_theme"] | |
})); |
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
# my_project/themes/scimple/theme.js | |
Scimple = SC.Object.create(); | |
Scimple.Theme = SC.EmptyTheme.create({ | |
name: 'scimple' | |
}); | |
SC.Theme.addTheme(Scimple.Theme); | |
SC.defaultTheme = 'scimple'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment