npm install package --save
will auto add to dependencies- Use an MVC structure
- You can have dependencies just for development
- There are a few higher level frameworks (Tower.js, Geddy, Derby, Locomotive.js) but it seems wise to keep it simple
- Use an MVC structure
- The power of node modules cannot be understated. On the other hand it seems best to limit as much as possible to only required modules
- Get your code clearly organized from the start
- Use an MVC structure
// Intercepting HTTP calls with AngularJS. | |
angular.module('MyApp', []) | |
.config(function ($provide, $httpProvider) { | |
// Intercept http calls. | |
$provide.factory('MyHttpInterceptor', function ($q) { | |
return { | |
// On request success | |
request: function (config) { | |
// console.log(config); // Contains the data about the request before it is sent. |
@charset "UTF-8";input[type=date],input[type=datetime-local],input[type=email],input[type=number],input[type=password],input[type=tel],input[type=text],input[type=time],input[type=url]{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;-o-appearance:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:0 0;height:1rem;color:#e9ecef;display:inline-block;min-width:2.5rem;border-bottom:1px solid #adbbc4;padding:0 .25rem}.select select:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=number]:focus,input[type=password]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus{outline:0}input[type=date]:not([readonly]),input[type=datetime-local]:not([readonly]),input[type=email]:not([readonly]),input[type=number]:not([readonly]),input[type=password]:not([readonly]),input[type=tel]:not([readonly]),input[type=text]:not([readonly]),input[type=time]:not([readonly]),input[type=url]:not([readonly]){ba |
export interface IUser { | |
id: number; | |
first_name: string; | |
last_name: string; | |
email: string; | |
company: string; | |
avatar: string; | |
} | |
export const Users = [{ |
.clr-h-display { | |
color: #29373d; | |
font-size: 40px; | |
line-height: 48px; | |
font-family: "Metropolis"; | |
font-weight: 500; | |
letter-spacing: -0.5px; | |
} | |
.clr-h-heading { |
var routes = [ | |
{ | |
url: '/', | |
params: { | |
templateUrl: 'views/home.html', | |
controller: 'HomeCtrl' | |
} | |
}, | |
{ | |
url: '/bookmarks', |
<?php | |
defined('_JEXEC') or die(); | |
class CornerstoneInstallerScript | |
{ | |
public function preflight($parent) | |
{ | |
return true; | |
} |
<?xml version="1.0"?> | |
<extension type="distribution"> | |
<name>Cornerstone</name> | |
<description>A distribution for Square One with the cornerstone Joomla extensions.</description> | |
<extensions> | |
<extension name="Load Module Content Plugin" element="loadmodule" type="plugin" folder="content" version="2.5.0" detailsurl="http://update.squareonecms.org/extensions/plg_content_loadmodule.xml"/> | |
<extension name="JCE Editor" type="component" element="com_jce" version="2.5.0" detailsurl="https://www.joomlacontenteditor.net/index.php?option=com_updates&view=update&format=xml&id=1" /> | |
<extension name="Akeeba Backup" type="component" element="com_akeeba" version="2.5.0" detailsurl="http://cdn.akeebabackup.com/updates/abcore.xml" /> | |
<extension name="XMap Sitemap" type="component" element="com_xmap" version="2.5.0" detailsurl="pkg_com_xmap-2.2.1.zip" /> | |
</extensions> |
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
A sample update manifest file for an extension. When requested by the server, | |
this could be served as JSON and could be translated if available. | |
--> | |
<versions> <!-- Root node --> | |
<name>My Component</name> <!-- The name of the extension --> | |
<description>Description</description> <!-- Extension description --> | |
<element>com_component</element> | |
<type>component</type> <!-- values: file, package, component, module, plugin, library --> |
This is a sample vision concept for Square One. You should include all of the following details. It is recommended that if you want to include code (real or just pseudo code) that you make a separate Gist for each snippet and link to it from here. That will make it easier to comment and provide syntax highlighting for that code (select the language to enable that feature). For this sample Markdown is used to provide some formatting to the content. Make sure you make it a public Gist, or else people will not be able to see it!
This is a short summary of concept.
Here you will begin describing the problem that needs to be solved. If you are wanting to add a feature, explain problem your feature will try to solve. If you are pointing out a problem with an existing functionality, describe it here.