Skip to content
Permalink
Browse files

Email export (#16)

  • Loading branch information
kacperj committed Nov 16, 2019
1 parent 8a8c2bc commit a7b9deff9fdf731e5a6c73070c0029506802499e
Showing with 37 additions and 11,907 deletions.
  1. +0 −39 components/authenticationBaseVM.ts
  2. +0 −55 components/base/baseVM.ts
  3. +0 −27 components/base/lightVM.ts
  4. +0 −13 components/base/microVM.ts
  5. +0 −176 components/base/validationForm.ts
  6. +0 −14 components/editor.tsx
  7. +0 −39 components/editor/myProjects.tsx
  8. +4 −129 components/editor/myProjectsVM.ts
  9. +0 −9 components/ingameCore.tsx
  10. +0 −25 components/modals/confirmModal.tsx
  11. +0 −66 components/modals/confirmModalVM.ts
  12. +0 −85 components/modals/lightModalVM.ts
  13. +0 −18 components/modals/loadingModal.tsx
  14. +0 −40 components/modals/loginModal/loginModalForm.tsx
  15. +8 −24 components/modals/loginModal/loginVM.ts
  16. +0 −24 components/modals/loginRegisterModal.tsx
  17. +0 −44 components/modals/loginRegisterVM.ts
  18. +0 −84 components/modals/modalVM.ts
  19. +0 −8 components/modals/modals.tsx
  20. +1 −4 config/config.ts
  21. +0 −31 core/events.ts
  22. +0 −5 core/knockoutBindings.ts
  23. +4 −30 core/moduleLoader.ts
  24. +0 −15 core/navigationService.ts
  25. +0 −39 core/router.ts
  26. +0 −19 dts/backbone.d.ts
  27. +0 −87 dts/bootstrap.d.ts
  28. +0 −1,891 dts/jqueryui.d.ts
  29. +0 −9 dts/mockedDeps.d.ts
  30. +0 −3,375 dts/underscore.d.ts
  31. +0 −573 dts/underscore.string.d.ts
  32. +0 −2 editor.html
  33. +2 −1 grunt/config/clean.coffee
  34. +0 −1 grunt/config/copy.coffee
  35. +0 −178 lib/Countable.js
  36. +0 −202 lib/Requirejs/almond.js
  37. +0 −89 lib/backbone.js
  38. +0 −848 lib/bootstrap.js
  39. +0 −1,548 lib/underscore.js
  40. +0 −600 lib/underscore.string.js
  41. +5 −112 localizations/en-US.ts
  42. +0 −4 localizations/errorCodes.ts
  43. +0 −6 localizations/modelCodes.ts
  44. +0 −10 localizations/validationCodes.ts
  45. +1 −10 main/coreEditorLibs.js
  46. +0 −7 models/gamebook/pageModel.ts
  47. +0 −17 models/gamebook/segments/segmentModel.ts
  48. +0 −3 models/state/actionModel.d.ts
  49. +0 −3 models/tokenModel.ts
  50. +0 −1 modules/authorization/index.ts
  51. +0 −6 modules/authorization/modals.ts
  52. +0 −2 modules/authorization/templates.ts
  53. +5 −3 modules/editor/index.ts
  54. +0 −6 modules/editor/modals.ts
  55. +0 −6 modules/editor/modules.ts
  56. +0 −10 modules/editor/routes.ts
  57. +0 −5 modules/editor/templates.ts
  58. +0 −291 sass/_common.scss
  59. +0 −12 sass/_mixins.scss
  60. +0 −22 sass/_navigation-links.scss
  61. +1 −8 sass/editor.scss
  62. +0 −168 sass/modules/_editor.scss
  63. +0 −20 sass/modules/_player.scss
  64. +2 −5 src/apps/editorAppBase.ts
  65. +0 −14 src/guidGenerator.ts
  66. +0 −16 src/loader.ts
  67. +0 −85 src/repositories/gameBookProjectRepository.ts
  68. +0 −33 src/repositories/gameBookRepositoryBase.ts
  69. +0 −21 src/repositories/repositoryBase.ts
  70. +0 −21 src/services/accountService.ts
  71. +0 −27 src/services/authService.ts
  72. +3 −21 src/services/projectService.ts
  73. +1 −14 src/services/requestProxy.ts
  74. +0 −25 src/session/sessionState.ts
  75. +0 −296 terms.html
  76. +0 −13 validation/modelValidations.ts
  77. +0 −7 validation/validators/Validator.d.ts
  78. +0 −5 validation/validators/ValidatorFactory.d.ts
  79. +0 −46 validation/validators/email.ts
  80. +0 −22 validation/validators/length.ts
  81. +0 −18 validation/validators/required.ts
  82. +0 −20 validation/validators/value.ts

This file was deleted.

@@ -1,64 +1,9 @@
import ko = require("knockout");
import {Events, events} from "../../core/events";
import moduleLoader = require("../../core/moduleLoader");
import navigationService = require("../../core/navigationService");
import ValidationForm = require("./validationForm");

$(window).resize(() => {
events.trigger("window-resized");
});

class BaseVM {
public ko: KnockoutStatic;
public events: Events;
public validationForm: ValidationForm;
public navigationData: any;

constructor() {
this.validationForm = new ValidationForm();
}

public OnNavigated(navigationData: any = {}) {
this.navigationData = navigationData;
this.validationForm.hideModelErrors();
}

public OnNavigatedFrom() {
this.navigationData = null;
}

public ShouldShowError = (modelName, modelField) => {
return this.validationForm.ShouldShowError(modelName, modelField);
}

public ErrorText = (modelName, modelField) => {
return this.validationForm.ErrorText(modelName, modelField);
}

public OnAuthenticated() {

}

public OnLogout() {

}

public navigate(routeName) {
navigationService.navigate(routeName);
}

public navigateExternalInNewTab(url) {
navigationService.navigateExternalInNewTab(url);
}

public showLoginModal(data): JQueryPromise<{ isAuthenticated?: boolean }> {
const loginRegisterModal = moduleLoader.viewModelLocator.modals["LoginRegister"];

return loginRegisterModal.showModal(data);
}
}

BaseVM.prototype.ko = ko;
BaseVM.prototype.events = events;

export = BaseVM;

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -11,47 +11,8 @@ import { React } from "../../core/reactMock";
<div>
<p data-bind="loc: 'app.forcreators'"></p>
<p data-bind="loc: 'app.forcontributors'"></p>
<p data-bind="loc: 'app.foroldusers'"></p>
</div>
</div>
<div class="row" data-bind="if: $data.Games().length === 0 || !$data.IsAccountLoaded()" >
<a data-bind="click: $data.OpenCreateGameModal, loc: 'actions.create_game'" class="btn btn-primary btn-lg"></a>
</div>
<div class="row">
<div data-bind="if: $data.Games().length > 0" >
<h3 data-bind="loc: 'page_titles.my_projects'"></h3>
<div data-bind="foreach: { data: $data.Games, as: 'game' }">
<div>
<h4 class="show-items-on-hover clickable">
<span class="bkng-inline-block tree-page-name" data-bind="click: $parent.EditGame">
<span data-bind="text: $data.Title"></span>
</span>
<span data-bind="click: $parent.ExportToHtml, clickBubble: false"
class="bkng-inline-block clickable glyphicon glyphicon-download-alt padding-left-8 shown-on-hover"></span>
<span data-bind="click: $parent.DeleteGamebook, clickBubble: false"
class="bkng-inline-block clickable glyphicon glyphicon-trash padding-left-8 shown-on-hover"></span>
</h4>
</div>
</div>

</div>

<div data-bind="if: $data.IsAccountLoaded()">
<h3 data-bind="loc: 'page_titles.my_account'" ></h3>
<div>
<h4 class="show-items-on-hover">
<span class="bkng-inline-block tree-page-name">
<span data-bind="text: $data.AccountEmail()"></span>
</span>
<span data-bind="click: $data.Logout, clickBubble: false"
class="bkng-inline-block clickable glyphicon glyphicon-log-out padding-left-8 shown-on-hover"></span>
<span data-bind="click: $data.DeleteAccount, clickBubble: false"
class="bkng-inline-block clickable glyphicon glyphicon-trash padding-left-8 shown-on-hover"></span>
</h4>
</div>
</div>

</div>
</div>
</div>
</div >;

0 comments on commit a7b9def

Please sign in to comment.
You can’t perform that action at this time.