Skip to content

Commit feb37c5

Browse files
committed
Added version feature ; Prepared repo for first release
1 parent 3090362 commit feb37c5

File tree

13 files changed

+121
-281
lines changed

13 files changed

+121
-281
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Yimello
2+
3+
Yimello is a tiny tool to save your bookmarks and browse them easily.
4+
Current version is a beta one. Then, you can encounter some issues when
5+
using it. Please open a ticket in tracker to notify me :) I'll appreciate.
6+
7+
## Knowns issues
8+
9+
* Closing and minimizing window are not working on Windows
10+
* Troubles with menu animations
11+
12+
## Future improvements
13+
14+
* Exporting to browser
15+
* Creating a backup from app
16+
* A reset feature
17+
* Improving design

app/dependencies.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,5 @@
109109
/// <reference path="presenters/MainPresenter/Menu/utils/DragFileArea.ts" />
110110

111111
//grunt-start
112+
/// <reference path="helpers/VersionHelper.ts" />
112113
//grunt-end

app/helpers/VersionHelper.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/// <reference path="../dependencies.ts" />
2+
3+
// TODO : test
4+
class VersionHelper {
5+
//region Fields
6+
7+
private static _target : string = 'http://yimello.adriencadet.com/version';
8+
private static _version : string = '0.1.0';
9+
10+
//endregion Fields
11+
12+
//region Constructors
13+
14+
//endregion Constructors
15+
16+
//region Methods
17+
18+
//region Private Methods
19+
20+
//endregion Private Methods
21+
22+
//region Public Methods
23+
24+
static isUpToDate(callback : Action<boolean>) : void {
25+
var get : GetRequest;
26+
27+
get = new GetRequest(VersionHelper._target);
28+
get.setDataType(AjaxRequestDataType.Text);
29+
get.execute(
30+
(data, status, xhr) => {
31+
callback(data === VersionHelper._version);
32+
}
33+
);
34+
}
35+
36+
//endregion Public Methods
37+
38+
//endregion Methods
39+
}

app/presenters/IntroPresenter.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ class IntroPresenter extends YimelloPresenter {
44
//region Fields
55

66
private _hexagon : DOMElement;
7+
78
private _mustExit : boolean;
89

910
//endregion Fields
@@ -60,15 +61,34 @@ class IntroPresenter extends YimelloPresenter {
6061
}
6162
}
6263

64+
private _testVersion() : void {
65+
var notification : DOMElement;
66+
67+
notification = DOMTree.findSingle('.js-update-notification');
68+
69+
VersionHelper.isUpToDate(
70+
(success) => {
71+
if (!success) {
72+
notification.setCss(
73+
{
74+
opacity : 1
75+
}
76+
);
77+
}
78+
}
79+
);
80+
}
81+
6382
//endregion Private Methods
6483

6584
//region Public Methods
6685

6786
onStart() : void {
6887
var t : Timer;
6988

70-
DOMTree.findSingle('.js-intro-strap').centerize(DOMTree.findSingle('.body'));
89+
DOMTree.findSingle('.js-strap-wrapper').centerize(DOMTree.findSingle('.body'));
7190
this._hexagon = DOMTree.findSingle('.js-hexagon');
91+
this._testVersion();
7292

7393
BusinessMediator
7494
.getTagBookmarkBusiness()

app/presenters/TourPresenter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ class TourPresenter extends YimelloPresenter {
144144
// On click on delete icon, remove bound tag
145145
img.on(DOMElementEvents.Click, (e) => {
146146
img.off(DOMElementEvents.Click);
147+
tag.remove();
147148
this._currentTags.remove(tagObj);
148149
});
149150
}
@@ -293,7 +294,7 @@ class TourPresenter extends YimelloPresenter {
293294
if (this._currentTags.getLength() > 0) {
294295
PresenterMediator
295296
.getTagBusiness()
296-
.addList(
297+
.merge(
297298
this._currentTags,
298299
(outcome) => {
299300
this._currentTags = outcome;

app/ui/assets/fonts/MODERNE SANS.eot

-15.7 KB
Binary file not shown.

app/ui/assets/fonts/MODERNE SANS.svg

Lines changed: 0 additions & 261 deletions
This file was deleted.

app/ui/assets/fonts/MODERNE SANS.ttf

-15.6 KB
Binary file not shown.

app/ui/assets/fonts/MODERNE SANS.woff

-9.75 KB
Binary file not shown.

app/ui/assets/img/gift-icon.png

1.27 KB
Loading

0 commit comments

Comments
 (0)