susanoo 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/susanoo/templates/application/src/assets/javascripts/app.js +7 -5
- data/lib/susanoo/templates/application/src/assets/javascripts/functions.js +1 -1
- data/lib/susanoo/templates/application/src/index.html.erb +1 -1
- data/lib/susanoo/templates/generators/ng_module/module.js.erb +5 -4
- data/lib/susanoo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8862acf66cd34b1e0a3bfdcea3bfa4198251536f
|
4
|
+
data.tar.gz: b65c760c4afcd794d1e0106529637bc234fc098e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b983b094f9919066b77c9915ddb33484349111a835c79dd57414045d1ad647046986de0820bdf172929abfa5a77f5a679984f29d215d299e9bdf4c43e3671f85
|
7
|
+
data.tar.gz: 273b1de0b37567704d0ca2ae5d969ce0537df8ba45372fb5971a4675fe21bc3a38b33c2ba7d7146291c4a43ea81620afa45c036666451a0c3f22ba47aa2905b8
|
@@ -1,16 +1,18 @@
|
|
1
1
|
// Main Application Module
|
2
2
|
// -----------------------
|
3
3
|
// This module is the start point of application.
|
4
|
-
var App = angular.module("Application", ["
|
4
|
+
var App = angular.module("Application", ["ngAnimate", "gettext", "ui.router"]);
|
5
5
|
|
6
6
|
// configuration section ---------------------------
|
7
|
-
App.config(["$
|
7
|
+
App.config(["$stateProvider", "$urlRouterProvider", function($stateProvider, $urlRouterProvider){
|
8
8
|
|
9
|
+
$urlRouterProvider.otherwise("/");
|
9
10
|
// Configuring application index route.
|
10
11
|
// Add any route you need here.
|
11
|
-
$
|
12
|
-
|
13
|
-
|
12
|
+
$stateProvider.
|
13
|
+
state("root", {
|
14
|
+
url: "/",
|
15
|
+
templateUrl: template_url("main"),
|
14
16
|
controller: "MainController"
|
15
17
|
});
|
16
18
|
|
@@ -2,13 +2,14 @@
|
|
2
2
|
var <%= module_name %> = angular.module("<%= module_name.camelize %>", ["gettext"<% dependencies.each do |dep| %>, "<%= dep.camelize %>"<% end %>]);
|
3
3
|
|
4
4
|
// configuration section ---------------------------
|
5
|
-
<%= module_name %>.config(["$
|
5
|
+
<%= module_name %>.config(["$stateProvider", function($stateProvider){
|
6
6
|
|
7
7
|
// Configuring application index route.
|
8
8
|
// Add any route you need here.
|
9
|
-
$
|
10
|
-
|
11
|
-
|
9
|
+
$stateProvider.
|
10
|
+
state("<%= module_name %>", {
|
11
|
+
url: "/<%= directory_name %><%= module_name %>/",
|
12
|
+
templateUrl: template_url("<%= directory_name %><%= module_name %>/index"),
|
12
13
|
controller: "<%= module_name.camelize %>Controller"
|
13
14
|
});
|
14
15
|
|
data/lib/susanoo/version.rb
CHANGED