Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Eichhorn committed Apr 24, 2024
1 parent 2b96c4e commit 16b5b00
Show file tree
Hide file tree
Showing 102 changed files with 640 additions and 282 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/js_template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: CI

on:
workflow_call:
secrets:
GH_TOKEN:
required: true
GH_PAT:
required: true
CODECOV_TOKEN:
required: true

jobs:
codestyle-tests:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'NO_CI')"
steps:
- name: Checkout Repository
uses: actions/checkout@main
with:
fetch-depth: 1
- name: Checkout Build Repository
uses: actions/checkout@main
with:
fetch-depth: 1
ref: develop
repository: Karaka-Management/Build
path: Build
- name: Install NPM
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'npm'
- run: npm install
- name: eslint
run: npx eslint ./ -c Build/Config/.eslintrc.json --fix
- name: Check for modified files
if: always()
id: git-format-check
run: echo "modified=$(if git diff-index -G --quiet HEAD --; then echo "false"; else echo "true"; fi)" >> $GITHUB_OUTPUT
- name: Push changes
if: steps.git-format-check.outputs.modified == 'true'
run: |
git config --global user.name 'Formatter Bot'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Automated formatting changes (NO_CI)"
git push
code-tests:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'NO_CI')"
steps:
- name: Checkout Repository
uses: actions/checkout@main
with:
fetch-depth: 1
- name: Checkout Build Repository
uses: actions/checkout@main
with:
fetch-depth: 1
ref: develop
repository: Karaka-Management/Build
path: Build
- name: Install NPM
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'npm'
- run: npm install
- name: jasmine
run: |
Build/Config/jasmine_build.sh
npx jasmine --config=Build/Config/jasmine.json
29 changes: 10 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,16 @@ jobs:
run: composer install
- name: phpunit
run: vendor/bin/phpunit --coverage-clover tests/coverage.xml --configuration tests/phpunit_no_coverage.xml
- name: Install NPM
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'npm'
- run: npm install
- name: jasmine
run: |
Build/Config/jasmine_build.sh
npx jasmine --config=Build/Config/jasmine.json
cpp-tests:
if: "!contains(github.event.head_commit.message, 'NO_CI')"
strategy:
Expand Down Expand Up @@ -220,25 +230,6 @@ jobs:
- run: npm install
- name: eslint
run: npx eslint ./jsOMS -c Build/Config/.eslintrc.json
# linting:
# runs-on: ubuntu-latest
# if: "!contains(github.event.head_commit.message, 'NO_CI')"
# strategy:
# fail-fast: false
# max-parallel: 3
# steps:
# - name: Checkout Repository
# uses: actions/checkout@main
# with:
# fetch-depth: 0
# submodules: recursive
# token: ${{ secrets.GH_PAT }}
# - name: Lint Code Base
# uses: github/super-linter/slim@v4
# env:
# VALIDATE_ALL_CODEBASE: false
# DEFAULT_BRANCH: develop
# GITHUB_TOKEN: ${{ secrets.GH_PAT }}
custom:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'NO_CI')"
Expand Down
2 changes: 1 addition & 1 deletion Build
5 changes: 0 additions & 5 deletions Cli/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,4 @@
1 => '\Modules\Media\Controller\CliController:runEncryptionChangeFromHook',
],
],
'/.*/' => [
'callback' => [
0 => '\Modules\Workflow\Controller\CliController:runWorkflowFromHook',
],
],
];
29 changes: 0 additions & 29 deletions Cli/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,4 @@
'verb' => 16,
],
],
'^.*/workflow/instance( .*$|$)' => [
0 => [
'dest' => '\Modules\Workflow\Controller\CliController:cliWorkflowInstanceCreate',
'verb' => 16,
],
],
'^/billing/bill/purchase/parse( .*$|$)' => [
0 => [
'dest' => '\Modules\Billing\Controller\CliController:cliParseSupplierBill',
'verb' => 16,
],
],
'^/purchase/order/suggestion/create( .*$|$)' => [
0 => [
'dest' => '\Modules\Purchase\Controller\CliController:cliGenerateOrderSuggestion',
'verb' => 16,
],
],
'^.*/orw/check -i all*$' => [
0 => [
'dest' => '\Modules\OnlineResourceWatcher\Controller\ApiController:apiCheckResources',
'active' => true,
'permission' => [
'module' => 'OnlineResourceWatcher',
'type' => 4,
'state' => 1,
],
],
],
];
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ For the purposes of these POLICIES:
* TERMS, POLICIES or AGREEMENT mean these terms that form the entire agreement between You and the COMPANY regarding the use of the SERVICE.
* Third-party Social Media Service means any services or content (including data, information, products or services) provided by a third-party that may be displayed, included or made available by the SERVICES.
* WEBSITE refers to all websites owned by jingga
* APPLICATION refers to all downloadable or installable content which can therfore be used on a given DEVICE.
* APPLICATION refers to all downloadable or installable content which can therefore be used on a given DEVICE.
* You means the individual accessing or using the SERVICES, or the company, or other legal entity on behalf of which such individual is accessing or using the SERVICE, as applicable.

## What is personal data?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ For the purposes of these TERMS:
* TERMS, POLICIES or AGREEMENT mean these terms that form the entire agreement between You and the COMPANY regarding the use of the SERVICE.
* Third-party Social Media Service means any services or content (including data, information, products or services) provided by a third-party that may be displayed, included or made available by the SERVICES.
* WEBSITE refers to all websites owned by jingga
* APPLICATION refers to all downloadable or installable content which can therfore be used on a given DEVICE.
* APPLICATION refers to all downloadable or installable content which can therefore be used on a given DEVICE.
* You means the individual accessing or using the SERVICES, or the company, or other legal entity on behalf of which such individual is accessing or using the SERVICE, as applicable.

## Acknowledgement
Expand Down
2 changes: 1 addition & 1 deletion Install/Application/Backend/login.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<label for="iPassword"><?= $this->getHtml('Password', '0', '0'); ?>:</label>
<div class="inputWithIcon">
<i class="frontIco g-icon" aria-hidden="true">lock</i>
<input id="iPassword" type="password" name="pass" tabindex="2" value="orange">
<input id="iPassword" type="password" name="pass" tabindex="2" value="">
<i class="endIco g-icon" aria-hidden="true">close</i>
</div>
<input id="iLoginButton" name="loginButton" type="submit" value="<?= $this->getHtml('Login', '0', '0'); ?>" tabindex="3">
Expand Down
1 change: 1 addition & 0 deletions Install/InstallAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ protected static function installCore(ApplicationAbstract $app) : void
$toInstall = [
'Admin',
'Auditor',
'Monitoring',
];

$module = $app->moduleManager->get('Admin', 'Api');
Expand Down
74 changes: 41 additions & 33 deletions Install/index.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,50 @@
import { jsOMS } from '../jsOMS/Utils/oLib.js';
import { ResponseManager } from '../jsOMS/Message/Response/ResponseManager.js';
import { EventManager } from '../jsOMS/Event/EventManager.js'
import { UIManager } from '../jsOMS/UI/UIManager.js'
import { Form } from '../jsOMS/UI/Component/Form.js'
import { redirectMessage } from '../jsOMS/Model/Action/Dom/Redirect.js';
import { Logger } from '../jsOMS/Log/Logger.js';

export class Application {
constructor ()
{
this.logger = Logger.getInstance(true, false, false);
window.logger = this.logger;

this.responseManager = new ResponseManager()
this.eventManager = new EventManager();
this.uiManager = new UIManager(this);
this.responseManager.add('redirect', redirectMessage);

this.uiManager.formManager.bind('installForm');
this.uiManager.formManager.get('installForm').injectSubmit(function(e) {
const valid = e.isValid();

if (valid) {
document.getElementsByTagName('main')[0].setAttribute(
'style',
'margin-left: ' + (5 * -100) + '%;'
);

window.omsApp.eventManager.trigger(e.id);
} else {
window.alert('You didn\'t fill out all required configuration fields. Please check your settings also on the previous pages.');
}

return valid;
});

this.uiManager.formManager.get('installForm').setSuccess(function(e) {
window.location.replace('http://'
+ document.getElementById('iDomain').value
+ jsOMS.rtrim(document.getElementById('iWebSubdir').value, '/')
+ '/backend'
);
});
}
};

jsOMS.ready(function ()
{
/* navigation */
Expand Down Expand Up @@ -379,38 +419,6 @@
});
}

/* setup App */
const app = {
responseManager: new ResponseManager(),
eventManager: new EventManager()
};

app.responseManager.add('redirect', redirectMessage);

const formManager = new Form(app),
logger = Logger.getInstance();

window.logger = logger;
formManager.bind('installForm');
formManager.get('installForm').injectSubmit(function(e) {
const valid = e.isValid();

if (valid) {
document.getElementsByTagName('main')[0].setAttribute(
'style',
'margin-left: ' + (5 * -100) + '%;'
);

app.eventManager.trigger(e.id);
} else {
window.alert('You didn\'t fill out all required configuration fields. Please check your settings also on the previous pages.');
}

return valid;
});

formManager.get('installForm').setSuccess(function(e) {
window.location.replace('http://' + document.getElementById('iDomain').value + document.getElementById('iWebSubdir').value + '/backend');
});
window.omsApp = new Application();
});
</script>
2 changes: 1 addition & 1 deletion Modules/Accounting
2 changes: 1 addition & 1 deletion Modules/AssetManagement
2 changes: 1 addition & 1 deletion Modules/Attribute
2 changes: 1 addition & 1 deletion Modules/Auditor
2 changes: 1 addition & 1 deletion Modules/Balance
2 changes: 1 addition & 1 deletion Modules/BankAccounting
2 changes: 1 addition & 1 deletion Modules/Billing
2 changes: 1 addition & 1 deletion Modules/BudgetManagement
2 changes: 1 addition & 1 deletion Modules/BusinessExpenses
2 changes: 1 addition & 1 deletion Modules/CMS
2 changes: 1 addition & 1 deletion Modules/Calendar
2 changes: 1 addition & 1 deletion Modules/CashManagement
2 changes: 1 addition & 1 deletion Modules/Checklist
2 changes: 1 addition & 1 deletion Modules/ClientManagement
2 changes: 1 addition & 1 deletion Modules/Comments
2 changes: 1 addition & 1 deletion Modules/Contact
2 changes: 1 addition & 1 deletion Modules/ContractManagement
2 changes: 1 addition & 1 deletion Modules/Controlling
2 changes: 1 addition & 1 deletion Modules/Dashboard
2 changes: 1 addition & 1 deletion Modules/Database
2 changes: 1 addition & 1 deletion Modules/DatabaseEditor
2 changes: 1 addition & 1 deletion Modules/Draw
2 changes: 1 addition & 1 deletion Modules/Editor
2 changes: 1 addition & 1 deletion Modules/EquipmentManagement
2 changes: 1 addition & 1 deletion Modules/EventManagement
2 changes: 1 addition & 1 deletion Modules/Exchange
2 changes: 1 addition & 1 deletion Modules/Finance
2 changes: 1 addition & 1 deletion Modules/FleetManagement
2 changes: 1 addition & 1 deletion Modules/Helper
2 changes: 1 addition & 1 deletion Modules/Home
2 changes: 1 addition & 1 deletion Modules/HumanResourceManagement
2 changes: 1 addition & 1 deletion Modules/HumanResourceTimeRecording
Submodule HumanResourceTimeRecording updated 25 files
+7 −2 .github/workflows/main.yml
+0 −461 Admin/Install/Application/Timerecording/Application.php
+0 −1 Admin/Install/Application/Timerecording/Error/403_inline.tpl.php
+0 −28 Admin/Install/Application/Timerecording/Routes.php
+0 −190 Admin/Install/Application/Timerecording/Themes/Akebi/css/timerecording-small.css
+0 −153 Admin/Install/Application/Timerecording/Themes/Akebi/css/timerecording-small.scss
+0 −39 Admin/Install/Application/Timerecording/Themes/Akebi/css/timerecording_media.css
+0 −22 Admin/Install/Application/Timerecording/Themes/Akebi/css/timerecording_media.scss
+0 −24 Admin/Install/Application/Timerecording/Themes/Akebi/css/timerecording_vars.css
+0 −55 Admin/Install/Application/Timerecording/Themes/Akebi/css/timerecording_vars.scss
+0 −102 Admin/Install/Application/Timerecording/TimerecordingView.php
+ Admin/Install/Application/Timerecording/img/favicon.ico
+ Admin/Install/Application/Timerecording/img/logo.png
+0 −69 Admin/Install/Application/Timerecording/index.tpl.php
+0 −5 Admin/Install/Application/Timerecording/js/global/ActionEvents.js
+0 −3 Admin/Install/Application/Timerecording/js/global/KeyboardEvents.js
+0 −3 Admin/Install/Application/Timerecording/js/global/MouseEvents.js
+0 −12 Admin/Install/Application/Timerecording/js/global/ResponseEvents.js
+0 −2 Admin/Install/Application/Timerecording/js/global/TouchEvents.js
+0 −6 Admin/Install/Application/Timerecording/js/global/VoiceEvents.js
+0 −90 Admin/Install/Application/Timerecording/js/login.js
+0 −139 Admin/Install/Application/Timerecording/js/timerecording.js
+0 −27 Admin/Install/Application/Timerecording/lang/en.lang.php
+0 −267 Admin/Install/Application/Timerecording/login.tpl.php
+0 −33 Admin/Install/Application/Timerecording/manifest.json
Loading

0 comments on commit 16b5b00

Please sign in to comment.