Commit 9505e1ff authored by Diego Islas Ocampo's avatar Diego Islas Ocampo

Update to latest Aegis architecture

parent a19da886
root = true
[*]
end_of_line = lf
insert_final_newline = false
trim_trailing_whitespace = true
charset = utf-8
indent_size = 4
indent_style = tab
\ No newline at end of file
{
"rules": {
"dot-notation": [
2
],
"indent": [
2,
"tab",
{
"SwitchCase": 1,
"ObjectExpression": "first"
}
],
"quotes": [
2,
"double"
],
"linebreak-style": [
2,
"unix"
],
"no-console": [
2,
{
"allow": ["warn", "error"]
}
],
"no-eq-null":[
2
],
"no-eval":[
2
],
"no-implied-eval":[
2
],
"no-redeclare": [
2,
{
"builtinGlobals": true
}
],
"one-var": [
2,
"never"
],
"prefer-const":[
2
],
"semi": [
2,
"always"
],
"keyword-spacing":[
2,
{
"before": true,
"after": true,
"overrides": {
"if": {
"before": false
},
"for": {
"before": false
},
"while": {
"before": false
}
}
}
],
"space-before-blocks":[
2,
"always"
],
"space-before-function-paren": [
2,
"always"
],
"strict":[
2,
"global"
]
},
"env": {
"es6": true,
"browser": true
},
"extends": "eslint:recommended"
}
\ No newline at end of file
*.zip
*.rar
.DS_Store
node_modules/
*~
.Thumbs
.thumbs
._*
build/*
~*
*~
node_modules
build
.conf
.ftpconfig
.sftpconfig
package-lock.json
\ No newline at end of file
{
"tagname-lowercase": true,
"attr-lowercase": true,
"attr-value-double-quotes": true,
"doctype-first": true,
"tag-pair": true,
"spec-char-escape": true,
"id-unique": true,
"src-not-empty": true,
"attr-no-duplication": true,
"tag-pair": true,
"tag-self-close": false,
"title-require": true,
"doctype-html5": true,
"inline-style-disabled": true,
"space-tab-mixed-disabled": "tab",
"alt-require": true
}
\ No newline at end of file
{
"rules": {
"block-closing-brace-empty-line-before": "never",
"block-closing-brace-newline-after": "always",
"declaration-block-semicolon-newline-after": "always",
"block-opening-brace-space-before": "always",
"color-hex-case": "lower",
"color-named": "never",
"color-no-invalid-hex": true,
"function-comma-newline-after": "never-multi-line",
"function-comma-space-after": "always",
"no-duplicate-selectors": true,
"no-eol-whitespace": true,
"indentation": "tab",
"number-leading-zero": "always",
"property-no-unknown": [ true, {
"ignoreProperties": [
"composes"
]
}],
"selector-list-comma-newline-after": "always",
"unit-case": "lower",
"unit-whitelist": ["em", "rem", "s", "vmax", "vmin", "vh", "vw", "%", "px"]
}
}
\ No newline at end of file
The MIT License (MIT)
Copyright (c) 2015 Diego Islas Ocampo
Copyright (c) 2015 - 2017 Diego Islas Ocampo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......
# Aegis Template
This template is the simple base for the Aegis Framework, it will allow you to create your webpage quickly, featuring the cutting edge technologies and features of HTML5, CSS3 and Javascript.
# Aegis Framework: Oregano
It also features many properties to make your website it mobile and social friendly!
Oregano is a simple HTML5, CSS3 and JavaScript template, this flavor features just the front-end technologies of Aegis instead of adding a Backend as the other flavors. It will allow you allow you to create your website quickly, featuring the cutting edge technologies.
It also features many properties to make your website mobile, social friendly and even a progressive web app.
Visit the [WebPage](http://www.aegisframework.com/)
## Quick Start:
1. Download the latest release from the [Releases Page](https://github.com/HyuchiaDiego/AegisTemplate/releases).
1. Download the latest release from the [Releases Page](https://github.com/AegisFramework/Oregano/releases/latest).
2. Unzip the File.
3. Place your content on the index.html file and create as many files as you need.
4. Place your custom style on the main.css file.
......@@ -17,10 +18,7 @@ For more information read the [documentation](http://www.aegisframework.com/docu
## Attributions:
[Font Awesome](http://fontawesome.io) by Dave Gandy
[Normalize CSS](http://necolas.github.io/normalize.css/) by Nicolas Gallagher and Jonathan Neal
[Animate CSS](http://daneden.github.io/animate.css/) by Daniel Eden
## License
Aegis is an Open Source project released under the [MIT license](https://github.com/HyuchiaDiego/AegisTemplate/blob/master/LICENSE).
Aegis is an Open Source project released under the [MIT license](https://github.com/HyuchiaDiego/AegisTemplate/blob/master/LICENSE).
\ No newline at end of file
'use strict';
var gulp = require('gulp');
var download = require('gulp-download-stream');
var pkg = require('./package.json');
var zip = require('gulp-zip');
var cssnano = require('gulp-cssnano');
var closureCompiler = require('google-closure-compiler').gulp();
var rename = require('gulp-rename');
var htmlreplace = require('gulp-html-replace');
var name = 'AegisTemplate-v' + pkg.version + '.zip';
var minName = 'AegisTemplate-v' + pkg.version + '.min.zip';
gulp.task('prepare-dev', () => {
gulp.src('src/index.html')
.pipe(htmlreplace({
scripts: {
src: ['js/artemis.js', 'js/main.js'],
tpl: '<script src="%s"></script>'
},
stylesheets: {
src: ['style/animate.css', 'style/font-awesome.min.css', 'style/aegis.css', 'style/main.css'],
tpl: '<link rel="stylesheet" href="%s">'
}
}))
.pipe(gulp.dest('build/'));
});
gulp.task('prepare-prod', () => {
gulp.src('src/style/animate.min.css')
.pipe(cssnano())
.pipe(gulp.dest("src/style/"));
gulp.src('src/index.html')
.pipe(htmlreplace({
scripts: {
src: ['js/artemis.min.js', 'js/main.js'],
tpl: '<script src="%s"></script>'
},
stylesheets: {
src: ['style/animate.min.css', 'style/font-awesome.min.css', 'style/aegis.min.css', 'style/main.css'],
tpl: '<link rel="stylesheet" href="%s">'
}
}))
.pipe(gulp.dest('build/'));
});
gulp.task('build-development', () => {
return gulp.src(['build/*','src/**', '!src/js/*.min.js', '!src/style/!(font-awesome).min.css', '!**/.DS_Store', '!**/.gitignore', 'build/**', '!src/index.html'], {dot: true})
.pipe(zip(name))
.pipe(gulp.dest('dist/'));
});
gulp.task('build-production', () => {
return gulp.src(['build/*','src/**', '!src/js/!(*.min|main).js', '!src/style/!(*.min|main).css', '!**/.DS_Store', '!**/.gitignore', 'build/**', '!src/index.html'], {dot: true})
.pipe(zip(minName))
.pipe(gulp.dest('dist/'));
});
gulp.task('download', () => {
download("https://raw.githubusercontent.com/AegisFramework/Artemis/master/dist/artemis.js").pipe(gulp.dest("src/js/"));
download("https://raw.githubusercontent.com/HyuchiaDiego/AegisCSS/master/dist/aegis.css").pipe(gulp.dest("src/style/"));
download("https://raw.githubusercontent.com/AegisFramework/Artemis/master/dist/artemis.min.js").pipe(gulp.dest("src/js/"));
download("https://raw.githubusercontent.com/HyuchiaDiego/AegisCSS/master/dist/aegis.min.css").pipe(gulp.dest("src/style/"));
download("https://raw.githubusercontent.com/daneden/animate.css/master/animate.css").pipe(gulp.dest("src/style/"));
download({
file: "animate.min.css",
url: "https://raw.githubusercontent.com/daneden/animate.css/master/animate.css"
}).pipe(gulp.dest("src/style/"));
});
......@@ -13,88 +13,80 @@
<meta name="description" content=""><!--Page description. No longer than 155 characters.-->
<meta name="keywords" content="">
<meta name="author" content=""><!--Name of the author.-->
<meta name="theme-color" content=""><!--Theme color for browsers in hexadecimal format.-->
<!--Facebook Meta Tags-->
<meta property="og:image" content="http://"/> <!--URL of Image to show-->
<meta property="og:image" content=""/> <!--URL of Image to show-->
<meta property="og:description" content=""/> <!--Page Description-->
<meta property="og:site_name" content=""/> <!--The Name Here-->
<meta property="og:url" content="http://"/> <!--The Web main URL-->
<meta property="og:url" content=""/> <!--The Web main URL-->
<meta property="og:title" content=""/><!--The Title Here-->
<!--Google Meta Tags-->
<meta itemprop="name" content=""><!--The Name or Title Here-->
<meta itemprop="description" content=""><!--Page Description-->
<meta itemprop="image" content="http://"><!--URL of Image to show-->
<meta itemprop="image" content=""><!--URL of Image to show-->
<!--Twitter Meta Tags - You'll have to validate your website here: https://dev.twitter.com/docs/cards/validation/validator-->
<meta name="twitter:card" content="summary_large_image"> <!--Content type:summary, summary_large_image, photo, gallery, product, app, player-->
<meta name="twitter:domain" content=""> <!--Your web's domain-->
<meta name="twitter:domain" content=""> <!--Your web's domain-->
<meta name="twitter:site" content="@"> <!--@publisher-->
<meta name="twitter:title" content=""> <!--Page Title-->
<meta name="twitter:description" content=""> <!--Page description less than 200 characters-->
<meta name="twitter:creator" content="@"> <!--@author-->
<meta name="twitter:image:src" content="http://"><!--URL of Image to show-->
<meta name="twitter:image:src" content=""><!--URL of Image to show-->
<!--START of Web Apps Tags (Delete if not necessary)-->
<!--Android Meta Tags-->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="img/icons/icon_192x192.png"> <!--192 x 192 Icon-->
<link rel="icon" sizes="128x128" href="img/icons/icon_128x128.png"> <!--128 x 128 Icon-->
<!--Apple Meta Tags-->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content=""> <!--App Title or Name-->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <!--Styling for the iOS Status Bar-->
<link rel="apple-touch-icon" href="img/icons/icon_60x60.png"> <!--60 x 60 Icon-->
<link rel="apple-touch-icon" sizes="76x76" href="img/icons/icon_76x76.png"> <!--76 x 76 Icon-->
<link rel="apple-touch-icon" sizes="120x120" href="img/icons/icon_120x120.png"> <!--120 x 120 Icon-->
<link rel="apple-touch-icon" sizes="152x152" href="img/icons/icon_152x152.png"> <!--152 x 152 Icon-->
<link rel="apple-touch-icon" sizes="152x152" href="img/icons/icon_167x167.png"> <!--167 x 167 Icon-->
<link rel="apple-touch-icon" sizes="152x152" href="img/icons/icon_180x180.png"> <!--180 x 180 Icon-->
<!--Microsoft Tags-->
<meta name="msapplication-TileColor" content=""><!--Color of the tile on Windows. In hexadecimal format-->
<meta name="application-name" content=""/> <!-- App Title -->
<meta name="msapplication-tooltip" content=""/> <!--Small text on hover-->
<meta name="msapplication-starturl" content="http://"/> <!-- URL to start in -->
<meta name="msapplication-square70x70logo" content="img/msapplication-square70x70logo.png" /><!--Image for Tile 70x70-->
<meta name="msapplication-square150x150logo" content="img/msapplication-square150x150logo.png" /><!--Image for Tile 150x150-->
<meta name="msapplication-wide310x150logo" content="img/msapplication-wide310x150logo.png" /><!--Image for Tile 310x150-->
<meta name="msapplication-square310x310logo" content="img/msapplication-square310x310logo.png" /><!--Image for Tile 310x310-->
<meta name="msapplication-square70x70logo" content="img/icon-70x70.png" /><!--Image for Tile 70x70-->
<meta name="msapplication-square150x150logo" content="img/icon-150x150.png" /><!--Image for Tile 150x150-->
<meta name="msapplication-square310x310logo" content="img/icon-310x310.png" /><!--Image for Tile 310x310-->
<!--END of Web Apps Tags-->
<link rel="publisher" href=""><!--Publisher's Google+ URL-->
<!-- Android Mobile Icons-->
<link rel="icon" sizes="192x192" href="img/icon_192x192.png">
<link rel="icon" sizes="128x128" href="img/icon_128x128.png">
<link rel="publisher" href="https://plus.google.com/"><!--Publisher's Google+ URL-->
<!--Apple mobile icons-->
<link rel="apple-touch-icon" href="img/touch-icon-iphone.png"><!--60 x 60-->
<link rel="apple-touch-icon" sizes="76x76" href="img/touch-icon-ipad.png"><!--76 x 76-->
<link rel="apple-touch-icon" sizes="120x120" href="img/touch-icon-iphone-retina.png"><!--120 x 120-->
<link rel="apple-touch-icon" sizes="152x152" href="img/touch-icon-ipad-retina.png"><!--152 x 152-->
<link rel="shortcut icon" href="img/favicon.ico"/><!--Favicon. Good tool for creating one: http://xiconeditor.com/ Create all sizes.-->
<link rel="canonical" href=""><!--Canonical URL of your webpage-->
<link rel="manifest" href="manifest.json">
<link rel="shortcut icon" href="img/favicon.ico"/><!--Favicon. Good tool for creating one: http://xiconeditor.com/ Create all sizes.-->
<!-- build:stylesheets -->
<!-- endbuild -->
<!-- build:scripts -->
<link rel="stylesheet" href="style/font-awesome.css">
<link rel="stylesheet" href="style/kayros.css">
<link rel="stylesheet" href="style/main.css">
<!-- endbuild -->
<script src="js/artemis.js"></script>
<script src="js/animatelo.min.js"></script>
<script src="js/main.js"></script>
</head>
<!--Feel free to change element's place according to your design.-->
<body>
<header>
<!--Page Title-->
<h1></h1>
</header>
<!--Content Goes here-->
<footer>
</footer>
<script>
// Place here your Google Analytics Code.
</script>
<div class="middle align-center">
<h1>Aegis Framework
<small class="align-right">OREGANO</small>
</h1>
</div>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
"use strict";
/* global $_ready */
/* global $_ */
// Register the service worker
if ("serviceWorker" in navigator) {
if (location.protocol.indexOf ("http") > -1) {
navigator.serviceWorker.register("service-worker.js");
}
}
$_ready(function () {
$_(".nav .menu-icon").click(function () {
$_(this).parent().find("ul").toggleClass("active");
$_(this).toggleClass("fa-bars fa-times");
});
$_(".nav li").click(function () {
if ($_(".menu-icon").isVisible ()) {
$_(".menu-icon").toggleClass("fa-bars fa-times");
$_(this).parent().parent().find("ul").toggleClass("active");
}
});
});
\ No newline at end of file
{
"short_name": "",
"name": "",
"background_color": "",
"theme_color": "",
"orientation": "any",
"display": "standalone",
"start_url": "index.html",
"icons": [
{
"src": "img/icons/icon_48x48.png",
"type": "image/png",
"sizes": "48x48"
},
{
"src": "img/icons/icon_60x60.png",
"type": "image/png",
"sizes": "60x60"
},
{
"src": "img/icons/icon_70x70.png",
"type": "image/png",
"sizes": "70x70"
},
{
"src": "img/icons/icon_76x76.png",
"type": "image/png",
"sizes": "76x76"
},
{
"src": "img/icons/icon_96x96.png",
"type": "image/png",
"sizes": "96x96"
},
{
"src": "img/icons/icon_128x128.png",
"type": "image/png",
"sizes": "128x128"
},
{
"src": "img/icons/icon_150x150.png",
"type": "image/png",
"sizes": "150x150"
},
{
"src": "img/icons/icon_152x152.png",
"type": "image/png",
"sizes": "152x152"
},
{
"src": "img/icons/icon_167x167.png",
"type": "image/png",
"sizes": "167x167"
},
{
"src": "img/icons/icon_180x180.png",
"type": "image/png",
"sizes": "180x180"
},
{
"src": "img/icons/icon_192x192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "img/icons/icon_310x310.png",
"type": "image/png",
"sizes": "310x310"
},
{
"src": "img/icons/icon_512x512.png",
"type": "image/png",
"sizes": "512x512"
}
]
}
\ No newline at end of file
User-agent: *
\ No newline at end of file
"use strict";
// Name of your cache, no spaces or special characters.
var name = "";
// The version of the cache, changing this will force everything to be cached
// again.
var version = "";
var files = [
"/",
"index.html",
// Style Sheets
"style/font-awesome.min.css",
"style/kayros.css",
//"style/main.css",
// Scripts
"js/animatelo.min.js",
"js/artemis.js",
//"js/main.js",
// Fonts
"fonts/fontawesome-webfont.eot",
"fonts/fontawesome-webfont.svg",
"fonts/fontawesome-webfont.ttf",
"fonts/fontawesome-webfont.woff",
"fonts/fontawesome-webfont.woff2",
"fonts/FontAwesome.otf",
// Images
"img/favicon.ico",
"img/icons/icon_48x48.png",
"img/icons/icon_60x60.png",
"img/icons/icon_70x70.png",
"img/icons/icon_76x76.png",
"img/icons/icon_96x96.png",
"img/icons/icon_128x128.png",
"img/icons/icon_150x150.png",
"img/icons/icon_152x152.png",
"img/icons/icon_167x167.png",
"img/icons/icon_180x180.png",
"img/icons/icon_192x192.png",
"img/icons/icon_310x310.png",
"img/icons/icon_512x512.png"
];
self.addEventListener("install", function (event) {
event.waitUntil(
caches.open(`${name}-v${version}`).then(function (cache) {
return cache.addAll(files);
})
);
});
self.addEventListener("activate", function (event) {
event.waitUntil(
caches.keys().then(function (keyList) {
return Promise.all(keyList.map(function (key) {
if (key !== `${name}-v${version}`) {
return caches.delete(key);
}
}));
})
);
return self.clients.claim();
});
self.addEventListener("fetch", function (event) {
if (event.request.method !== "GET") {
return;
}
event.respondWith(
caches.match(event.request).then(function (cached) {
var networked = fetch(event.request)
.then(fetchedFromNetwork, unableToResolve)
.catch(unableToResolve);
return cached || networked;
function fetchedFromNetwork (response) {
var cacheCopy = response.clone();
caches.open(`${name}-v${version}`).then(function add (cache) {
cache.put(event.request, cacheCopy);
});
return response;
}
function unableToResolve () {
return new Response("<h1>Service Unavailable</h1>", {
status: 503,
statusText: "Service Unavailable",
headers: new Headers({
"Content-Type": "text/html"
})
});
}
})
);
});
\ No newline at end of file
This diff is collapsed.
$_ready(function(){
$_(".nav .menu-icon").click(function(){
$_(this).parent().find("ul").toggleClass("active");
$_(this).toggleClass('fa-bars fa-times');
});
$_(".nav li").click(function(){
if($_(".menu-icon").isVisible()){
$_(".menu-icon").toggleClass('fa-bars fa-times');
$_(this).parent().parent().find("ul").toggleClass("active");
}
});
});
\ No newline at end of file
User-agent: *
Disallow:
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment