Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ztl8702 committed Jan 12, 2018
1 parent fbb0279 commit 264093b
Show file tree
Hide file tree
Showing 8 changed files with 5,014 additions and 71 deletions.
12 changes: 4 additions & 8 deletions www/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ angular.module('app', ['ui.router'])
.state({
name: 'home',
url: '/',
templateUrl: 'app/views/welcome.tpl.html',
controller: 'homeController'
component: 'landingPage'
})
.state({
name: 'showidiom',
Expand All @@ -20,24 +19,21 @@ angular.module('app', ['ui.router'])
.state({
name: 'showhelp',
url: '/help',
templateUrl: 'app/views/help.tpl.html'
// controller: 'mainCtrl'
component: 'helpPage'
})
.state({
name: 'showcategories',
url: '/tags',
templateUrl: 'app/views/tags.tpl.html' ,
controller: 'tagsController'
component: 'categoryPage'
})
.state({
name: 'showapps',
url: '/apps',
templateUrl: 'app/views/apps.tpl.html'
component: 'appsPage'
});

$urlRouterProvider.otherwise('/');
}]);

require('./components');
require('./controllers');
require('./services');
4 changes: 4 additions & 0 deletions www/app/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ angular.module('app')
.component('fiMainview', require('./fi-mainview.component'))
.component('fiSidebar', require('./fi-sidebar.component'))
.component('viewIdiomPage', require('./view-idiom-page.component'))
.component('appsPage', require('./apps-page.component'))
.component('helpPage', require('./help-page.component'))
.component('landingPage', require('./landing-page.component'))
.component('categoryPage', require('./category-page.component'))
.component('sharePanel', require('./share-panel.component'));
7 changes: 0 additions & 7 deletions www/app/controllers/index.ts

This file was deleted.

33 changes: 0 additions & 33 deletions www/app/views/apps.tpl.html

This file was deleted.

21 changes: 0 additions & 21 deletions www/app/views/help.tpl.html

This file was deleted.

3 changes: 2 additions & 1 deletion www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
},
"dependencies": {
"@types/angular": "^1.5.0",
"@types/node": "^8.0.26"
"@types/node": "^8.0.26",
"rxjs": "^5.5.6"
}
}
2 changes: 1 addition & 1 deletion www/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
module: {
rules: [
{ test: /\.(t|j)s$/, use: { loader: 'awesome-typescript-loader?{tsconfig: "tsconfig.json"}' } },
{ test: /\.(html)$/, use: { loader: 'html-loader'} },
{ test: /\.(html)$/, use: { loader: 'html-loader', options: { attrs: false }}},
// addition - add source-map support
{ enforce: "pre", test: /\.js$/, loader: "source-map-loader" }
]
Expand Down
Loading

0 comments on commit 264093b

Please sign in to comment.