Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
fc56a77
Add documentation generation tool
Ettapp Mar 20, 2018
05339a2
Merge remote-tracking branch 'upstream/master'
Ettapp Mar 20, 2018
acc4daf
Prevent implicites "any" at transpilation
Ettapp Mar 20, 2018
bb8e731
Install npm @types package to declare libs types
Ettapp Mar 20, 2018
dcf2941
Add definition files for external js libs
Ettapp Mar 20, 2018
8023f89
Create a Gulp task to clear TypeScript transpilation's results
Ettapp Mar 20, 2018
9290ddb
Init tslint tool
Ettapp Mar 20, 2018
2204843
Move the GOOGLE_GEOCODE_KEY in a "conf" folder
Ettapp Mar 20, 2018
e6b224a
Clear and split .gitignore file
Ettapp Mar 20, 2018
23b0b55
Remove all purescript traces
Ettapp Mar 20, 2018
fa7ea98
Remove incompatible npm script
Ettapp Mar 20, 2018
38f438c
Document npm scripts
Ettapp Mar 20, 2018
67d0db7
Transform purescript code into typescript
Ettapp Mar 21, 2018
4e04a66
Move the webpack configuration in a "build" folder
Ettapp Mar 21, 2018
9237d8c
Update dependency and fix type definitions of geojson
Ettapp Mar 21, 2018
92abdb4
Update sources file to work with updated dependencies
Ettapp Mar 21, 2018
9438ec0
Remove useless lines in tsconfig.json
Ettapp Mar 21, 2018
cefd466
Update tslint.json to allow leading underscore
Ettapp Mar 21, 2018
ae4c50e
Refactor map.ts to follow typescript guidelines
Ettapp Mar 21, 2018
12a0d93
Remove commented line
Ettapp Mar 21, 2018
2a5bfcc
Upgrade dependencies
Ettapp Mar 26, 2018
404e087
Import files instead of requiring them by calling file-loader
Ettapp Mar 27, 2018
9ce91c5
Move all the images in the assets folder
Ettapp Mar 28, 2018
d867a65
fix linting by removing wrong config option
Ettapp Apr 5, 2018
ca2c33a
add tslint module to package
Ettapp Apr 6, 2018
3120443
refactor: clean all the code to match tslint:recommended
Ettapp Apr 6, 2018
558425c
refactor: clean remaining code to match tslint:recommended
Ettapp Apr 6, 2018
9e7c350
Speed up the typescript transpilation
Ettapp Apr 8, 2018
cda4118
remove useless asset file
Ettapp Apr 11, 2018
a450790
Update editor layout
Ettapp Apr 11, 2018
05545de
Add redirection from simple id to touchpad-voice
Ettapp Apr 12, 2018
4d08469
Remove useless imports
Ettapp Apr 12, 2018
2d9aa02
Upgrading the packages
Ettapp Apr 16, 2018
7ccd821
Fix border styling issue
Ettapp Apr 16, 2018
1b247d2
Move the tests config files in a test directory
Ettapp Apr 16, 2018
e57ec90
Move the index.html file in src folder
Ettapp Apr 16, 2018
443a25f
Updating travis config to fit code updates
Ettapp Apr 16, 2018
f02c5a7
Fix travis config
Ettapp Apr 16, 2018
5e6d996
Correct code style
Ettapp Apr 17, 2018
a788aec
Implement hotkeys for touchpad-voice
Ettapp Apr 17, 2018
bf99226
Remove useless else condition
Ettapp Apr 18, 2018
1ea3cf3
Correct a comment
Ettapp Apr 18, 2018
270de22
Increase the surface of the destination zone
Ettapp Apr 18, 2018
d88372c
Add the key-word "plan" for lecture mode
Ettapp Apr 18, 2018
6a94176
Refactor searched point indications
Ettapp Apr 18, 2018
42f6603
Fix the kml points coordinates order
Ettapp Apr 18, 2018
8bba1f8
Add the vegetation texture button
Ettapp Apr 18, 2018
92f9e6e
Update texture images
Ettapp Apr 18, 2018
088a83e
Update texture images size
Ettapp Apr 18, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 7 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
node_modules
typings
*.info.txt
*.log
*.js
*.js.map
!karma-test-shim.js
!karma-test-main.js
!karma.conf.js
!webpack.karma.config.js
!webpack.config.js
.idea
abaplan-core.iml
/*.png
output
bower_components
/assets/
*secret.ts
!example.*secret.ts
/.idea/
/.DS_STORE/
/dist/
/doc/
/node_modules/
/output/

.DS_STORE
abaplan-core.iml
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sudo: required
dist: trusty
language: node_js
node_js:
- '4.2'
- '9.10'

addons:
apt:
Expand All @@ -21,10 +21,7 @@ before_script:
- npm install -g typescript
- npm install -g karma
- npm install
- npm install bower
- bower install
- grep -v '^///' < node_modules/angular-in-memory-web-api/in-memory-backend.service.d.ts > node_modules/angular-in-memory-web-api/in-memory-backend.service2.d.ts && mv node_modules/angular-in-memory-web-api/in-memory-backend.service2.d.ts node_modules/angular-in-memory-web-api/in-memory-backend.service.d.ts
- echo "export let GOOGLE_GEOCODE_KEY = '$GOOGLE_API_KEY';" > src/app/core/secret.ts
- echo "export let GOOGLE_GEOCODE_KEY = '$GOOGLE_API_KEY';" > src/conf/secret.ts
- tsc

script: npm test
6 changes: 6 additions & 0 deletions assets/css/abaplans.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@media print{
@page {
margin: 0;
size: landscape
}
}
Binary file added assets/img/icons/textures/vegetation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added assets/img/textures/blackDot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/textures/traitilles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions bower.json

This file was deleted.

119 changes: 119 additions & 0 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
const path = require("path");

const CopyWebpackPlugin = require('copy-webpack-plugin');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const HtmlWebpackIncludeAssetsPlugin = require('html-webpack-include-assets-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');

// May be improved by selecting only the needed files
const copyWebpackPluginConfig = [
'i18n/*.json',
{
from: 'assets/css/abaplans.css',
to: 'css/abaplans.css',
},
];

const htmlWebpackIncludeAssetsPluginConfig = {
assets: [
'css/abaplans.css',
'//js.arcgis.com/3.20/esri/css/esri.css',
'//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css',
'//code.jquery.com/jquery-3.3.1.min.js',
'//js.arcgis.com/3.20/init.js',// must be after jquery
],
append: false
};

const HtmlWebpackPluginConfig = {
meta: {
viewport: 'width=device-width, initial-scale=1',
},
template: path.resolve(__dirname, "../src/index.html"),
inject: 'head',
chunks: [],
};

module.exports = {
entry: {
main: ["./src/app/boot.ts"],
vendor: [
// put your third party libs here
"@angular/common",
"@angular/compiler",
"@angular/core",
"@angular/http",
"@angular/platform-browser",
"@angular/platform-browser-dynamic",
"@angular/router",
"angular-in-memory-web-api",
"core-js",
"ngx-bootstrap",
"rxjs",
"zone.js"
]
},
externals: [
function(context, request, callback) {
if (
/^dojo/.test(request) ||
/^dojox/.test(request) ||
/^dijit/.test(request) ||
/^esri/.test(request)
) {
return callback(null, "amd " + request);
}
callback();
}
],
module: {
rules: [
{
test: /\.(gif|png)$/,
use: {
loader: 'file-loader',
options: {
outputPath: "assets/",
publicPath: "assets/",
}
}
},
{
test: /\.ts$/,
use: [
{
loader: "ts-loader",
options: {
// disable type checker - we will use it in fork plugin
transpileOnly: true,
}
},
{
loader: "angular2-template-loader",
}
],
},
{
test: /\.(html|css)$/,
loaders: "raw-loader"
},
]
},
output: {
filename: "[name].bundle.js",
libraryTarget: "amd", // necessary for esri (arcgis)
path: path.resolve(__dirname, "../dist"),
},
plugins: [
new CopyWebpackPlugin(copyWebpackPluginConfig),
new ForkTsCheckerWebpackPlugin(),
new HtmlWebpackPlugin(HtmlWebpackPluginConfig),
new HtmlWebpackIncludeAssetsPlugin(htmlWebpackIncludeAssetsPluginConfig),
],
resolve: {
alias: {
Assets: path.resolve(__dirname, "../assets"),
},
extensions: [".ts", ".tsx", ".js"]
}
};
10 changes: 10 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var gulp = require('gulp');
var cleanCompiledTypeScript = require('gulp-clean-compiled-typescript');

gulp.task('clear', function () {
return gulp.src('./src/**/*.ts').pipe(cleanCompiledTypeScript());
});

gulp.task('default', function() {
console.log('No default task exists');
});
14 changes: 9 additions & 5 deletions i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@
"draw_polygon":"Polygon",
"draw_traits": "Linie",
"draw_pedestrian": "Vorübergehen Fussgänger",
"fill": "Textur",
"texture_black": "Schwarz",
"texture_white": "Weiss",
"texture_water": "Wasser",
"texture_vegetation": "Vegetation",
"print": "Drucken",
"open" : "öffnen",
"open" : "Öffnen",
"save": "Sichern",

"_comment": "Map",
Expand Down Expand Up @@ -68,7 +71,8 @@
"itineraryEndHelp": " Dieser Befehl aus der Mode dieser Route löscht alle Inhalte eingefügt",

"readId": [
{ "value": "Lesung" }
{ "value": "Lesung" },
{ "value": "Plan" }
],
"readDescri": "Lesung, Voreinstellung",
"readActive": "Weise Lesung, die aktiviert ist",
Expand All @@ -89,8 +93,8 @@
"search_lower_left":"unten links",
"search_lower_right":"unten rechts",
"search_center":"im Mittelpunkt",
"searchKilometer":"Kilometer",
"searchMeter":"Meter",
"si_unit_km":"Kilometer",
"si_unit_m":"Meter",
"searchArrived":"Sie kamen",
"searchTo":"In",

Expand Down
12 changes: 8 additions & 4 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
"draw_polygon":"Polygon",
"draw_traits": "Traits",
"draw_pedestrian": "Pedestrian pathway",
"fill": "Texture",
"texture_black": "Black",
"texture_white": "White",
"texture_water": "Water",
"texture_vegetation": "Vegetation",
"print": "Print",
"open" : "Open",
"save": "Save",
Expand Down Expand Up @@ -68,7 +71,8 @@
"itineraryEndHelp": " This command exits the route mode, which removes all the inserted contents",

"readId": [
{ "value": "read" }
{ "value": "read" },
{ "value": "plan" }
],
"readDescri": "Read, default mode",
"readActive": "Read Mode",
Expand All @@ -89,8 +93,8 @@
"search_lower_left":"at the bottom left",
"search_lower_right":"at the bottom right",
"search_center":"in middle",
"searchKilometer":"kilometer",
"searchMeter":"meter",
"si_unit_km":"kilometer",
"si_unit_m":"meter",
"searchArrived":"You have arrived",
"searchTo":"to",

Expand Down
12 changes: 8 additions & 4 deletions i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
"draw_polygon":"Polygone",
"draw_traits": "Traitillés",
"draw_pedestrian": "Passage piétons",
"fill": "Texture",
"texture_black": "Noir",
"texture_white": "Blanc",
"texture_water": "Eau",
"texture_vegetation": "Végétation",
"print": "Imprimer",
"open" : "Ouvrir",
"save": "Sauvegarder",
Expand Down Expand Up @@ -68,7 +71,8 @@
"itineraryEndHelp": " Cette commande permet de sortir du mode itinéraire cela supprime tous le contenu insérer",

"readId": [
{ "value": "lecture" }
{ "value": "lecture" },
{ "value": "plan" }
],
"readDescri": "obtenir une adresses",
"readActive": "Mode lecture activé",
Expand All @@ -92,8 +96,8 @@
"search_lower_left":"en bas à gauche",
"search_lower_right":"en bas à droite",
"search_center":"au centre",
"searchKilometer":"kilomètre",
"searchMeter":"mètres",
"si_unit_km":"kilomètre",
"si_unit_m":"mètre",
"searchArrived":"Vous êtes arrivé",
"searchTo":"à",

Expand Down
12 changes: 8 additions & 4 deletions i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
"draw_polygon": "Poligono",
"draw_traits": "puntinato",
"draw_pedestrian": "Passaggio pedoni",
"fill": "Struttura",
"texture_black": "Nero",
"texture_white": "Bianco",
"texture_water": "Acqua",
"texture_vegetation": "Vegetazione",
"print": "Stampare",
"open": "Aprire",
"save": "Salvaguardare",
Expand Down Expand Up @@ -68,7 +71,8 @@
"itineraryEndHelp": " Questo ordine permette di estrarre del modo itinerario ciò sopprimo tutto il contenuto inserire",

"readId": [
{ "value": "lettura" }
{ "value": "lettura" },
{ "value": "piano" }
],
"readDescri": "ottenere un indirizzi",
"readActive": "Moda lettura attivata",
Expand All @@ -91,8 +95,8 @@
"search_lower_left":"in basso a sinistra",
"search_lower_right":"in basso a destra",
"search_center":"al centro",
"searchKilometer":"chilometro",
"searchMeter":"metri",
"si_unit_km":"chilometro",
"si_unit_m":"metri",
"searchArrived":"sei arrivato",
"searchTo":"al",

Expand Down
37 changes: 0 additions & 37 deletions index.html

This file was deleted.

Loading