Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
7bc96dd8
Commit
7bc96dd8
authored
Oct 26, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] revert apply app module part js
parent
22d5f56c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
63 additions
and
0 deletions
+63
-0
app.config.js
atms-web/src/main/webapp/app/app.config.js
+31
-0
app.js
atms-web/src/main/webapp/app/app.js
+0
-0
module-part1.js
atms-web/src/main/webapp/app/module-part1.js
+0
-0
module-part2.js
atms-web/src/main/webapp/app/module-part2.js
+0
-0
module-part3.js
atms-web/src/main/webapp/app/module-part3.js
+0
-0
module-part4.js
atms-web/src/main/webapp/app/module-part4.js
+32
-0
No files found.
atms-web/src/main/webapp/app/app.config.js
0 → 100644
View file @
7bc96dd8
(
function
()
{
'use strict'
;
angular
.
module
(
'app.config'
,
[])
// region of current application
.
constant
(
'region'
,
'zh-CN'
)
//.constant('region', 'en-US')
// version of current application
.
constant
(
'version'
,
'1.0.0.0'
)
// Exceptionless Server URL
.
constant
(
'exceptionlessServerURL'
,
''
)
.
run
([
'region'
,
function
(
region
)
{
$
.
when
(
$
.
getJSON
(
"/Scripts/cldr/main/zh/numbers.json"
),
$
.
getJSON
(
"/Scripts/cldr/main/zh/ca-gregorian.json"
),
$
.
getJSON
(
"/Scripts/cldr/supplemental/likelySubtags.json"
)
).
then
(
function
()
{
return
[].
slice
.
apply
(
arguments
,
[
0
]).
map
(
function
(
result
)
{
return
result
[
0
];
});
}).
then
(
Globalize
.
load
).
then
(
function
()
{
Globalize
.
locale
(
"zh-CN"
);
// Globalize.locale("en-US");
DevExpress
.
localization
.
locale
(
region
);
//DevExpress.localization.locale(navigator.language || navigator.browserLanguage);
});
}
]);
}());
\ No newline at end of file
atms-web/src/main/webapp/app/app.js
0 → 100644
View file @
7bc96dd8
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/module-part1.js
0 → 100644
View file @
7bc96dd8
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/module-part2.js
0 → 100644
View file @
7bc96dd8
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/module-part3.js
0 → 100644
View file @
7bc96dd8
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/module-part4.js
0 → 100644
View file @
7bc96dd8
var
noPermissionPageModule
=
angular
.
module
(
'app.noPermissionPage'
,
[])
.
run
([
'$log'
,
function
(
$log
)
{
$log
.
debug
(
'app.noPermissionPage.run()...'
);
}])
.
config
([
'$controllerProvider'
,
'$compileProvider'
,
'$filterProvider'
,
'$provide'
,
'scriptDependencyProvider'
,
'$stateProvider'
,
'$urlRouterProvider'
,
function
(
$controllerProvider
,
$compileProvider
,
$filterProvider
,
$provide
,
scriptDependencyProvider
,
$stateProvider
,
$urlRouterProvider
)
{
'use strict'
;
// this is required to add controller/directive/filter/service after angular bootstrap
bindModule
(
noPermissionPageModule
,
$controllerProvider
,
$compileProvider
,
$filterProvider
,
$provide
);
$stateProvider
.
state
({
name
:
'noPermissionPage'
,
url
:
'/noPermissionPage'
,
views
:
{
'@'
:
{
controller
:
[
'$scope'
,
'$stateParams'
,
'appTranslation'
,
function
(
$scope
,
$stateParams
,
appTranslation
)
{
appTranslation
.
load
([
appTranslation
.
noPermissionPage
]);
}],
template
:
'<no-permission-page></no-permission-page>'
}
},
resolve
:
scriptDependencyProvider
.
createDependenciesMap
(
scriptDependencyProvider
.
noPermissionPage
),
deepStateRedirect
:
true
,
sticky
:
true
});
}]);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment