Skip to content
Permalink
Browse files

Add 'js-client/' from commit 'b4e969ceb22f35867e9181906123baaee330a3fc'

git-subtree-dir: js-client
git-subtree-mainline: 196372f
git-subtree-split: b4e969c
  • Loading branch information...
tpokorra committed Aug 5, 2019
2 parents 196372f + b4e969c commit a501cb52375b5257d72108453e3cd2a35103f460
Showing with 14,283 additions and 0 deletions.
  1. +6 −0 js-client/.gitignore
  2. +2 −0 js-client/.htaccess
  3. +25 −0 js-client/Readme.md
  4. +1 −0 js-client/css/app.css
  5. +48 −0 js-client/css/autocomplete.css
  6. +99 −0 js-client/css/login.css
  7. +113 −0 js-client/css/main.css
  8. +4 −0 js-client/css/report.css
  9. +152 −0 js-client/css/sidebar.css
  10. +4 −0 js-client/cypress.json
  11. +29 −0 js-client/cypress/integration/login_spec.js
  12. +52 −0 js-client/cypress/integration/partner_edit.js
  13. +96 −0 js-client/etc/UINavigation.yml
  14. BIN js-client/img/favicon.png
  15. +216 −0 js-client/index.html
  16. +1 −0 js-client/locales/de
  17. +534 −0 js-client/locales/de-DE/common.json
  18. +536 −0 js-client/locales/en/common.json
  19. +3,557 −0 js-client/package-lock.json
  20. +37 −0 js-client/package.json
  21. +15 −0 js-client/page_for_ie.html
  22. +251 −0 js-client/src/forms/CrossLedgerSetup/LedgerSetup.html
  23. +144 −0 js-client/src/forms/CrossLedgerSetup/LedgerSetup.js
  24. +366 −0 js-client/src/forms/Finance/GeneralLedger/GLBatchMaintenance/GLBatches.html
  25. +424 −0 js-client/src/forms/Finance/GeneralLedger/GLBatchMaintenance/GLBatches.js
  26. +128 −0 js-client/src/forms/Finance/GeneralLedger/Info/LedgerInfo.html
  27. +59 −0 js-client/src/forms/Finance/GeneralLedger/Info/LedgerInfo.js
  28. +80 −0 js-client/src/forms/Finance/GeneralLedger/PeriodEnd/MonthEnd.html
  29. +78 −0 js-client/src/forms/Finance/GeneralLedger/PeriodEnd/MonthEnd.js
  30. +81 −0 js-client/src/forms/Finance/GeneralLedger/PeriodEnd/YearEnd.html
  31. +79 −0 js-client/src/forms/Finance/GeneralLedger/PeriodEnd/YearEnd.js
  32. +97 −0 js-client/src/forms/Finance/GeneralLedger/Reports/AccountDetail.html
  33. +57 −0 js-client/src/forms/Finance/GeneralLedger/Reports/AccountDetail.js
  34. +41 −0 js-client/src/forms/Finance/GeneralLedger/Reports/AccountDetail.json
  35. +367 −0 js-client/src/forms/Finance/Gift/GiftEntry/BankImport.html
  36. +309 −0 js-client/src/forms/Finance/Gift/GiftEntry/BankImport.js
  37. +444 −0 js-client/src/forms/Finance/Gift/GiftEntry/GiftBatches.html
  38. +505 −0 js-client/src/forms/Finance/Gift/GiftEntry/GiftBatches.js
  39. +87 −0 js-client/src/forms/Finance/Gift/GiftReceipting/PrintAnnualReceipts.html
  40. +174 −0 js-client/src/forms/Finance/Gift/GiftReceipting/PrintAnnualReceipts.js
  41. +26 −0 js-client/src/forms/Finance/Setup/GL/AccountTree.html
  42. +104 −0 js-client/src/forms/Finance/Setup/GL/AccountTree.js
  43. +26 −0 js-client/src/forms/Finance/Setup/GL/CostCenterTree.html
  44. +98 −0 js-client/src/forms/Finance/Setup/GL/CostCenterTree.js
  45. +209 −0 js-client/src/forms/Finance/Setup/Gift/Motivations.html
  46. +244 −0 js-client/src/forms/Finance/Setup/Gift/Motivations.js
  47. +26 −0 js-client/src/forms/Home.html
  48. +30 −0 js-client/src/forms/Home.js
  49. +22 −0 js-client/src/forms/Partner/Partners/ImportExport/ImportPartners.html
  50. +58 −0 js-client/src/forms/Partner/Partners/ImportExport/ImportPartners.js
  51. +461 −0 js-client/src/forms/Partner/Partners/Maintain/MaintainPartners.html
  52. +280 −0 js-client/src/forms/Partner/Partners/Maintain/MaintainPartners.js
  53. +46 −0 js-client/src/forms/Partner/Reports/PartnerReports/AnnualReportWithoutAnnualReceiptRecipients.html
  54. +51 −0 js-client/src/forms/Partner/Reports/PartnerReports/AnnualReportWithoutAnnualReceiptRecipients.js
  55. +5 −0 js-client/src/forms/Partner/Reports/PartnerReports/AnnualReportWithoutAnnualReceiptRecipients.json
  56. +74 −0 js-client/src/forms/Partner/Reports/PartnerReports/PartnerByCity.html
  57. +43 −0 js-client/src/forms/Partner/Reports/PartnerReports/PartnerByCity.js
  58. +5 −0 js-client/src/forms/Partner/Reports/PartnerReports/PartnerByCity.json
  59. +74 −0 js-client/src/forms/Partner/Reports/PartnerReports/PartnerBySpecialType.html
  60. +69 −0 js-client/src/forms/Partner/Reports/PartnerReports/PartnerBySpecialType.js
  61. +5 −0 js-client/src/forms/Partner/Reports/PartnerReports/PartnerBySpecialType.json
  62. +151 −0 js-client/src/forms/Partner/Setup/Subscription/MaintainPublications.html
  63. +135 −0 js-client/src/forms/Partner/Setup/Subscription/MaintainPublications.js
  64. +151 −0 js-client/src/forms/Partner/Setup/Types/MaintainTypes.html
  65. +129 −0 js-client/src/forms/Partner/Setup/Types/MaintainTypes.js
  66. +7 −0 js-client/src/forms/Settings/ChangeLanguage.html
  67. +37 −0 js-client/src/forms/Settings/ChangeLanguage.js
  68. +18 −0 js-client/src/forms/Settings/ChangePassword.html
  69. +62 −0 js-client/src/forms/Settings/ChangePassword.js
  70. +33 −0 js-client/src/forms/SystemManager/ImportAndExportDatabase.html
  71. +119 −0 js-client/src/forms/SystemManager/ImportAndExportDatabase.js
  72. +174 −0 js-client/src/forms/SystemManager/MaintainUsers.html
  73. +178 −0 js-client/src/forms/SystemManager/MaintainUsers.js
  74. +36 −0 js-client/src/index.js
  75. +41 −0 js-client/src/lib/ajax.js
  76. +127 −0 js-client/src/lib/app.js
  77. +142 −0 js-client/src/lib/auth.js
  78. +95 −0 js-client/src/lib/autocomplete.js
  79. +73 −0 js-client/src/lib/autocomplete_motivation.js
  80. +57 −0 js-client/src/lib/autocomplete_partner.js
  81. +75 −0 js-client/src/lib/autocomplete_posting_acc_cc.js
  82. +48 −0 js-client/src/lib/checkIE.js
  83. +82 −0 js-client/src/lib/finance.js
  84. +103 −0 js-client/src/lib/i18n.js
  85. +315 −0 js-client/src/lib/navigation.js
  86. +160 −0 js-client/src/lib/reports.js
  87. +27 −0 js-client/src/lib/string.js
  88. +283 −0 js-client/src/lib/tpl.js
  89. +171 −0 js-client/src/lib/utils.js
@@ -0,0 +1,6 @@
node_modules
dist
fonts
cypress/screenshots
cypress/plugins
cypress/support
@@ -0,0 +1,2 @@
RedirectMatch 404 /\.git
RedirectMatch 404 /etc
@@ -0,0 +1,25 @@
Description
===========

OpenPetra Client written in Javascript is a client for OpenPetra running in the web browser.

License
=======

This code is licensed under GPL v3 or later.

Copyright 2017-2018 by TBits.net GmbH

Setup for Development
=====================

See the [instructions for the OpenPetra server](https://github.com/openpetra/openpetra#development-setup), which includes the installation of the client.

Running the tests
=================

npm install
# run from commandline
LANG=en CYPRESS_baseUrl=http://localhost ./node_modules/.bin/cypress run --config video=false --spec cypress/integration/partner_edit.js
# run with GUI (Chrome/Chromium required)
LANG=en CYPRESS_baseUrl=http://localhost ./node_modules/.bin/cypress open
@@ -0,0 +1 @@
@import url("node_modules/bootstrap/dist/css/bootstrap.min.css");
@@ -0,0 +1,48 @@
.autocomplete {
/*the container must be positioned relative:*/
position: relative;
display: inline-block;
}
.__input {
border: 1px solid transparent;
background-color: #f1f1f1;
padding: 10px;
font-size: 16px;
}
.__input[type=text] {
background-color: #f1f1f1;
width: 100%;
}
.__input[type=submit] {
background-color: DodgerBlue;
color: #fff;
}
.autocomplete-items {
position: absolute;
border: 1px solid #d4d4d4;
border-bottom: none;
border-top: none;
z-index: 99;
top: 100%;
left: 0;
right: 0;
}
.autocomplete-items div {
padding: 10px;
cursor: pointer;
background-color: #fff;
border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
/*when hovering an item:*/
background-color: #e9e9e9;
}
.autocomplete-active {
/*when navigating through the items using the arrow keys:*/
background-color: DodgerBlue !important;
color: #ffffff;
}

.modal-wide .modal-body {
overflow-y: visible!important;
}
@@ -0,0 +1,99 @@
body {
padding-top: 40px;
padding-bottom: 40px;
background-color: #eee;
}

.form-signin {
max-width: 330px;
padding: 15px;
margin: 0 auto;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
margin-bottom: 10px;
}
.form-signin .checkbox {
font-weight: normal;
}
.form-signin .form-control {
position: relative;
font-size: 16px;
height: auto;
padding: 10px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.form-signin .form-control:focus {
z-index: 2;
}
.form-signin input[type="text"] {
margin-bottom: -1px;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.form-signin input[type="password"] {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}

/* http://cpratt.co/twitter-bootstrap-callout-css-styles/ */
.bs-callout {
padding: 20px;
margin: 20px 0;
border: 1px solid #eee;
border-left-width: 5px;
border-radius: 3px;
}
.bs-callout h4 {
margin-top: 0;
margin-bottom: 5px;
}
.bs-callout p:last-child {
margin-bottom: 0;
}
.bs-callout code {
border-radius: 3px;
}
.bs-callout+.bs-callout {
margin-top: -5px;
}
.bs-callout-default {
border-left-color: #777;
}
.bs-callout-default h4 {
color: #777;
}
.bs-callout-primary {
border-left-color: #428bca;
}
.bs-callout-primary h4 {
color: #428bca;
}
.bs-callout-success {
border-left-color: #5cb85c;
}
.bs-callout-success h4 {
color: #5cb85c;
}
.bs-callout-danger {
border-left-color: #d9534f;
}
.bs-callout-danger h4 {
color: #d9534f;
}
.bs-callout-warning {
border-left-color: #f0ad4e;
}
.bs-callout-warning h4 {
color: #f0ad4e;
}
.bs-callout-info {
border-left-color: #5bc0de;
}
.bs-callout-info h4 {
color: #5bc0de;
}

@@ -0,0 +1,113 @@
body {
min-height: 2000px;
}

.list-group .nav {
display: none;
}

#main {
position: absolute;
top: 50px;
width: 100%;
}

#tabControl {
margin-left: 250px;
margin-top: 10px;
}

.dropdown-menu, .dropdown-item {
z-index: 1000;
}

.tpl_row{
margin-bottom:-10px;
}

/*
* Off Canvas
* --------------------------------------------------
*/
@media screen and (max-width: 7680px) {
.row-offcanvas {
position: relative;
-webkit-transition: all 0.25s ease-out;
-moz-transition: all 0.25s ease-out;
transition: all 0.25s ease-out;
}

.row-offcanvas-left
.sidebar-offcanvas {
left: -200px;
}

.row-offcanvas-left.active {
left: 200px;
}

.sidebar-offcanvas {
position: absolute;
top: 0;
width: 200px;
margin-left: 12px;
}
}

.modal.modal-wide .modal-dialog {
max-width: 90% !important;
}
.modal-wide .modal-body {
overflow-y: auto;
}

.hidden {
display: none;
}

.row {
margin-bottom: 10px;
}

#toolbar {
margin-bottom: 10px;
}

.group-container {
padding-top: 5px;
padding-bottom: 5px;
margin-bottom: 8px;
background: #e0e0e0;
}

.tab-pane {
margin-top: 10px;
}

.btn-window {
margin: 5px;
padding: 5px 10px;
}

.display_message {
background:white;
border-radius:5px;
border:2px solid black;
}
.display_message_success {
background:#88ee44!important;
}

.display_message_fail {
background:#ee8844!important;
}

.debit {
color:red!important;
}
.credit {
color:black!important;
}
.format_currency {
text-align:right;
}
@@ -0,0 +1,4 @@
/* currently still disabling the head */
#head { display: none; }

#column_headings {font-weight: bold;}

0 comments on commit a501cb5

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