Registrierung
This commit is contained in:
parent
c0da34309b
commit
ead2838bc1
|
|
@ -5,7 +5,7 @@
|
||||||
<name>Agency</name>
|
<name>Agency</name>
|
||||||
<summary>App for managing Agency of DA</summary>
|
<summary>App for managing Agency of DA</summary>
|
||||||
<description><![CDATA[test]]></description>
|
<description><![CDATA[test]]></description>
|
||||||
<version>0.0.1</version>
|
<version>0.0.2</version>
|
||||||
<licence></licence>
|
<licence></licence>
|
||||||
<namespace>Agency</namespace>
|
<namespace>Agency</namespace>
|
||||||
<category>tools</category>
|
<category>tools</category>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,11 @@ return [
|
||||||
//],
|
//],
|
||||||
'routes' => [
|
'routes' => [
|
||||||
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
|
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
|
||||||
|
# AGENCY
|
||||||
|
//['name' => 'agency#show', 'url' => '/getagencydata', 'verb' => 'GET'],
|
||||||
['name' => 'agency#show', 'url' => '/getagencydata', 'verb' => 'GET'],
|
['name' => 'agency#show', 'url' => '/getagencydata', 'verb' => 'GET'],
|
||||||
|
['name' => 'agency#update', 'url' => '/update', 'verb' => 'PUT'],
|
||||||
|
# DEVELOPMENT
|
||||||
['name' => 'test#filetest', 'url' => '/filetest', 'verb' => 'GET'],
|
['name' => 'test#filetest', 'url' => '/filetest', 'verb' => 'GET'],
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class AgencyManager {
|
||||||
*/
|
*/
|
||||||
public function createAgencyOnReg(string $agencygid, int $agencydirid, int $standarddirid){
|
public function createAgencyOnReg(string $agencygid, int $agencydirid, int $standarddirid){
|
||||||
$agencyService = new AgencyService($this->agencyMapper);
|
$agencyService = new AgencyService($this->agencyMapper);
|
||||||
return $agencyService->create(null, null, null, null, null, null, null, $agencygid, $agencydirid, $standarddirid);
|
return $agencyService->create($agencygid, $agencydirid, $standarddirid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -41,9 +41,7 @@ class AgencyController extends Controller {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @NoAdminRequired
|
* @NoAdminRequired
|
||||||
* @NoCSRFRequired
|
|
||||||
*
|
*
|
||||||
* @param int $id
|
|
||||||
*/
|
*/
|
||||||
public function show() {
|
public function show() {
|
||||||
$id = $this->agencyManager->getAgencyIdByUser($this->userSession);
|
$id = $this->agencyManager->getAgencyIdByUser($this->userSession);
|
||||||
|
|
@ -67,24 +65,26 @@ class AgencyController extends Controller {
|
||||||
* @param string $standarddirid
|
* @param string $standarddirid
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function create(string $name = null, string $inhaber = null, string $street = null, string $plz = null, string $city = null, string $agencymail = null, string $phone = null, string $agencygid, string $agencydirid, string $standarddirid) {
|
public function create(string $agencygid, string $agencydirid, string $standarddirid) {
|
||||||
return $this->service->create($name, $inhaber, $street, $plz, $city, $agencymail, $phone, $agencygid, $agencydirid, $standarddirid);
|
return $this->service->create($name, $inhaber, $street, $plz, $city, $agencymail, $phone, $agencygid, $agencydirid, $standarddirid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @NoAdminRequired
|
* @NoAdminRequired
|
||||||
* @NoCSRFRequired
|
|
||||||
*
|
*
|
||||||
* @param int $id
|
|
||||||
* @param string $title
|
* @param string $title
|
||||||
*/
|
*/
|
||||||
public function update(int $id, string $name = null, string $inhaber = null, string $street = null, string $plz = null, string $city = null, string $agencymail = null, string $phone = null) {
|
public function update(string $name = null, string $inhaber = null, string $street = null, string $plz = null, string $city = null, string $agencymail = null, string $phone = null) {
|
||||||
|
|
||||||
|
$id = $this->agencyManager->getAgencyIdByUser($this->userSession);
|
||||||
|
|
||||||
return $this->handleNotFound(function () use ($id, $name, $inhaber, $street, $plz, $city, $agencymail, $phone) {
|
return $this->handleNotFound(function () use ($id, $name, $inhaber, $street, $plz, $city, $agencymail, $phone) {
|
||||||
# TODO: ABfrage machen!
|
# TODO: ABfrage machen!
|
||||||
return $this->service->update($id, $name, $inhaber, $street, $plz, $city, $agencymail, $phone);
|
return $this->service->update($id, $name, $inhaber, $street, $plz, $city, $agencymail, $phone);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @NoAdminRequired
|
* @NoAdminRequired
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -25,19 +25,19 @@ class TestController extends Controller {
|
||||||
private $groupManager;
|
private $groupManager;
|
||||||
private $userManager;
|
private $userManager;
|
||||||
|
|
||||||
public function __construct($appName, IRequest $request, IDBConnection $db, IGroupManager $gm, IUserManager $userManager) {
|
public function __construct($appName, IRequest $request, IDBConnection $db, IGroupManager $gm, IUserManager $userManager, AgencyManager $agencyManager) {
|
||||||
parent::__construct($appName, $request);
|
parent::__construct($appName, $request);
|
||||||
$this->appName = $appName;
|
$this->appName = $appName;
|
||||||
$this->agencyManager = new AgencyManager($db);
|
$this->agencyManager = $agencyManager;
|
||||||
$this->groupManager = $gm;
|
$this->groupManager = $gm;
|
||||||
$this->userManager = $userManager;
|
$this->userManager = $userManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @NoAdminRequired
|
* @NoAdminRequired
|
||||||
* @NoCSRFRequired
|
|
||||||
*/
|
*/
|
||||||
public function filetest() {
|
public function filetest() {
|
||||||
|
/*
|
||||||
$user = $this->userManager->get('holger');
|
$user = $this->userManager->get('holger');
|
||||||
$groups = $this->groupManager->getUserGroups($user);
|
$groups = $this->groupManager->getUserGroups($user);
|
||||||
|
|
||||||
|
|
@ -47,8 +47,10 @@ class TestController extends Controller {
|
||||||
$agency_group_id = explode("_", strval($group->getGId()))[1];
|
$agency_group_id = explode("_", strval($group->getGId()))[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return $agency_group_id;
|
//return $agency_group_id;
|
||||||
|
return array("id" => 1, "name" => "DIETA");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -5,11 +5,11 @@
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/cli": {
|
"@babel/cli": {
|
||||||
"version": "7.13.16",
|
"version": "7.14.5",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.13.16.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.14.5.tgz",
|
||||||
"integrity": "sha512-cL9tllhqvsQ6r1+d9Invf7nNXg/3BlfL1vvvL/AdH9fZ2l5j0CeBcoq6UjsqHpvyN1v5nXSZgqJZoGeK+ZOAbw==",
|
"integrity": "sha512-poegjhRvXHWO0EAsnYajwYZuqcz7gyfxwfaecUESxDujrqOivf3zrjFbub8IJkrqEaz3fvJWh001EzxBub54fg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@nicolo-ribaudo/chokidar-2": "2.1.8-no-fsevents",
|
"@nicolo-ribaudo/chokidar-2": "2.1.8-no-fsevents.2",
|
||||||
"chokidar": "3.5.1",
|
"chokidar": "3.5.1",
|
||||||
"commander": "4.1.1",
|
"commander": "4.1.1",
|
||||||
"convert-source-map": "1.7.0",
|
"convert-source-map": "1.7.0",
|
||||||
|
|
@ -612,11 +612,18 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/plugin-syntax-typescript": {
|
"@babel/plugin-syntax-typescript": {
|
||||||
"version": "7.12.13",
|
"version": "7.14.5",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.12.13.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.14.5.tgz",
|
||||||
"integrity": "sha512-cHP3u1JiUiG2LFDKbXnwVad81GvfyIOmCD6HIEId6ojrY0Drfy2q1jw7BwN7dE84+kTnBjLkXoL3IEy/3JPu2w==",
|
"integrity": "sha512-u6OXzDaIXjEstBRRoBCQ/uKQKlbuaeE5in0RvWdA4pN6AhqxTIwUsnHPU1CFZA/amYObMsuWhYfRl3Ch90HD0Q==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/helper-plugin-utils": "7.13.0"
|
"@babel/helper-plugin-utils": "7.14.5"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/helper-plugin-utils": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ=="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/plugin-transform-arrow-functions": {
|
"@babel/plugin-transform-arrow-functions": {
|
||||||
|
|
@ -883,13 +890,188 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/plugin-transform-typescript": {
|
"@babel/plugin-transform-typescript": {
|
||||||
"version": "7.13.0",
|
"version": "7.14.5",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.13.0.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.14.5.tgz",
|
||||||
"integrity": "sha512-elQEwluzaU8R8dbVuW2Q2Y8Nznf7hnjM7+DSCd14Lo5fF63C9qNLbwZYbmZrtV9/ySpSUpkRpQXvJb6xyu4hCQ==",
|
"integrity": "sha512-cFD5PKp4b8/KkwQ7h71FdPXFvz1RgwTFF9akRZwFldb9G0AHf7CgoPx96c4Q/ZVjh6V81tqQwW5YiHws16OzPg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/helper-create-class-features-plugin": "7.14.2",
|
"@babel/helper-create-class-features-plugin": "7.14.5",
|
||||||
"@babel/helper-plugin-utils": "7.13.0",
|
"@babel/helper-plugin-utils": "7.14.5",
|
||||||
"@babel/plugin-syntax-typescript": "7.12.13"
|
"@babel/plugin-syntax-typescript": "7.14.5"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/code-frame": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/highlight": "7.14.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/generator": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-y3rlP+/G25OIX3mYKKIOlQRcqj7YgrvHxOLbVmyLJ9bPmi5ttvUmpydVjcFjZphOktWuA7ovbx91ECloWTfjIA==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/types": "7.14.5",
|
||||||
|
"jsesc": "2.5.2",
|
||||||
|
"source-map": "0.5.7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/helper-annotate-as-pure": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-EivH9EgBIb+G8ij1B2jAwSH36WnGvkQSEC6CkX/6v6ZFlw5fVOHvsgGF4uiEHO2GzMvunZb6tDLQEQSdrdocrA==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/types": "7.14.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/helper-create-class-features-plugin": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-Uq9z2e7ZtcnDMirRqAGLRaLwJn+Lrh388v5ETrR3pALJnElVh2zqQmdbz4W2RUJYohAPh2mtyPUgyMHMzXMncQ==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/helper-annotate-as-pure": "7.14.5",
|
||||||
|
"@babel/helper-function-name": "7.14.5",
|
||||||
|
"@babel/helper-member-expression-to-functions": "7.14.5",
|
||||||
|
"@babel/helper-optimise-call-expression": "7.14.5",
|
||||||
|
"@babel/helper-replace-supers": "7.14.5",
|
||||||
|
"@babel/helper-split-export-declaration": "7.14.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/helper-function-name": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-Gjna0AsXWfFvrAuX+VKcN/aNNWonizBj39yGwUzVDVTlMYJMK2Wp6xdpy72mfArFq5uK+NOuexfzZlzI1z9+AQ==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/helper-get-function-arity": "7.14.5",
|
||||||
|
"@babel/template": "7.14.5",
|
||||||
|
"@babel/types": "7.14.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/helper-get-function-arity": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-I1Db4Shst5lewOM4V+ZKJzQ0JGGaZ6VY1jYvMghRjqs6DWgxLCIyFt30GlnKkfUeFLpJt2vzbMVEXVSXlIFYUg==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/types": "7.14.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/helper-hoist-variables": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-R1PXiz31Uc0Vxy4OEOm07x0oSjKAdPPCh3tPivn/Eo8cvz6gveAeuyUUPB21Hoiif0uoPQSSdhIPS3352nvdyQ==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/types": "7.14.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/helper-member-expression-to-functions": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-UxUeEYPrqH1Q/k0yRku1JE7dyfyehNwT6SVkMHvYvPDv4+uu627VXBckVj891BO8ruKBkiDoGnZf4qPDD8abDQ==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/types": "7.14.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/helper-optimise-call-expression": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-IqiLIrODUOdnPU9/F8ib1Fx2ohlgDhxnIDU7OEVi+kAbEZcyiF7BLU8W6PfvPi9LzztjS7kcbzbmL7oG8kD6VA==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/types": "7.14.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/helper-plugin-utils": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ=="
|
||||||
|
},
|
||||||
|
"@babel/helper-replace-supers": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-3i1Qe9/8x/hCHINujn+iuHy+mMRLoc77b2nI9TB0zjH1hvn9qGlXjWlggdwUcju36PkPCy/lpM7LLUdcTyH4Ow==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/helper-member-expression-to-functions": "7.14.5",
|
||||||
|
"@babel/helper-optimise-call-expression": "7.14.5",
|
||||||
|
"@babel/traverse": "7.14.5",
|
||||||
|
"@babel/types": "7.14.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/helper-split-export-declaration": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-hprxVPu6e5Kdp2puZUmvOGjaLv9TCe58E/Fl6hRq4YiVQxIcNvuq6uTM2r1mT/oPskuS9CgR+I94sqAYv0NGKA==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/types": "7.14.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/helper-validator-identifier": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg=="
|
||||||
|
},
|
||||||
|
"@babel/highlight": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/helper-validator-identifier": "7.14.5",
|
||||||
|
"chalk": "2.4.2",
|
||||||
|
"js-tokens": "4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/parser": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-TM8C+xtH/9n1qzX+JNHi7AN2zHMTiPUtspO0ZdHflW8KaskkALhMmuMHb4bCmNdv9VAPzJX3/bXqkVLnAvsPfg=="
|
||||||
|
},
|
||||||
|
"@babel/template": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-6Z3Po85sfxRGachLULUhOmvAaOo7xCvqGQtxINai2mEGPFm6pQ4z5QInFnUrRpfoSV60BnjyF5F3c+15fxFV1g==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/code-frame": "7.14.5",
|
||||||
|
"@babel/parser": "7.14.5",
|
||||||
|
"@babel/types": "7.14.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/traverse": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-G3BiS15vevepdmFqmUc9X+64y0viZYygubAMO8SvBmKARuF6CPSZtH4Ng9vi/lrWlZFGe3FWdXNy835akH8Glg==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/code-frame": "7.14.5",
|
||||||
|
"@babel/generator": "7.14.5",
|
||||||
|
"@babel/helper-function-name": "7.14.5",
|
||||||
|
"@babel/helper-hoist-variables": "7.14.5",
|
||||||
|
"@babel/helper-split-export-declaration": "7.14.5",
|
||||||
|
"@babel/parser": "7.14.5",
|
||||||
|
"@babel/types": "7.14.5",
|
||||||
|
"debug": "4.3.1",
|
||||||
|
"globals": "11.12.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/types": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-M/NzBpEL95I5Hh4dwhin5JlE7EzO5PHMAuzjxss3tiOBD46KfQvVedN/3jEPZvdRvtsK2222XfdHogNIttFgcg==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/helper-validator-identifier": "7.14.5",
|
||||||
|
"to-fast-properties": "2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"debug": {
|
||||||
|
"version": "4.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz",
|
||||||
|
"integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==",
|
||||||
|
"requires": {
|
||||||
|
"ms": "2.1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ms": {
|
||||||
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/plugin-transform-unicode-escapes": {
|
"@babel/plugin-transform-unicode-escapes": {
|
||||||
|
|
@ -1030,13 +1212,25 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/preset-typescript": {
|
"@babel/preset-typescript": {
|
||||||
"version": "7.13.0",
|
"version": "7.14.5",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.13.0.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.14.5.tgz",
|
||||||
"integrity": "sha512-LXJwxrHy0N3f6gIJlYbLta1D9BDtHpQeqwzM0LIfjDlr6UE/D5Mc7W4iDiQzaE+ks0sTjT26ArcHWnJVt0QiHw==",
|
"integrity": "sha512-u4zO6CdbRKbS9TypMqrlGH7sd2TAJppZwn3c/ZRLeO/wGsbddxgbPDUZVNrie3JWYLQ9vpineKlsrWFvO6Pwkw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/helper-plugin-utils": "7.13.0",
|
"@babel/helper-plugin-utils": "7.14.5",
|
||||||
"@babel/helper-validator-option": "7.12.17",
|
"@babel/helper-validator-option": "7.14.5",
|
||||||
"@babel/plugin-transform-typescript": "7.13.0"
|
"@babel/plugin-transform-typescript": "7.14.5"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/helper-plugin-utils": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ=="
|
||||||
|
},
|
||||||
|
"@babel/helper-validator-option": {
|
||||||
|
"version": "7.14.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz",
|
||||||
|
"integrity": "sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow=="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/runtime": {
|
"@babel/runtime": {
|
||||||
|
|
@ -1134,10 +1328,10 @@
|
||||||
"resolved": "https://registry.npmjs.org/@nextcloud/axios/-/axios-1.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/@nextcloud/axios/-/axios-1.6.0.tgz",
|
||||||
"integrity": "sha512-yhCEFIQza1LBWJqq66ZcPxIjG60A/rUdw+oF7T796HXfW1JFsrRORmmTmV0b2Bxd0v9xSkW3Lgb3hKNk1aQBSw==",
|
"integrity": "sha512-yhCEFIQza1LBWJqq66ZcPxIjG60A/rUdw+oF7T796HXfW1JFsrRORmmTmV0b2Bxd0v9xSkW3Lgb3hKNk1aQBSw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/cli": "7.13.16",
|
"@babel/cli": "7.14.5",
|
||||||
"@babel/core": "7.14.2",
|
"@babel/core": "7.14.2",
|
||||||
"@babel/preset-env": "7.14.2",
|
"@babel/preset-env": "7.14.2",
|
||||||
"@babel/preset-typescript": "7.13.0",
|
"@babel/preset-typescript": "7.14.5",
|
||||||
"@nextcloud/auth": "1.3.0",
|
"@nextcloud/auth": "1.3.0",
|
||||||
"axios": "0.21.1",
|
"axios": "0.21.1",
|
||||||
"core-js": "3.12.1"
|
"core-js": "3.12.1"
|
||||||
|
|
@ -1303,15 +1497,15 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@nicolo-ribaudo/chokidar-2": {
|
"@nicolo-ribaudo/chokidar-2": {
|
||||||
"version": "2.1.8-no-fsevents",
|
"version": "2.1.8-no-fsevents.2",
|
||||||
"resolved": "https://registry.npmjs.org/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.tgz",
|
"resolved": "https://registry.npmjs.org/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.2.tgz",
|
||||||
"integrity": "sha512-+nb9vWloHNNMFHjGofEam3wopE3m1yuambrrd/fnPc+lFOMB9ROTqQlche9ByFWNkdNqfSgR/kkQtQ8DzEWt2w==",
|
"integrity": "sha512-Fb8WxUFOBQVl+CX4MWet5o7eCc6Pj04rXIwVKZ6h1NnqTo45eOQW6aWyhG25NIODvWFwTDMwBsYxrQ3imxpetg==",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"anymatch": "2.0.0",
|
"anymatch": "2.0.0",
|
||||||
"async-each": "1.0.3",
|
"async-each": "1.0.3",
|
||||||
"braces": "2.3.2",
|
"braces": "2.3.2",
|
||||||
"glob-parent": "3.1.0",
|
"glob-parent": "5.1.2",
|
||||||
"inherits": "2.0.4",
|
"inherits": "2.0.4",
|
||||||
"is-binary-path": "1.0.1",
|
"is-binary-path": "1.0.1",
|
||||||
"is-glob": "4.0.1",
|
"is-glob": "4.0.1",
|
||||||
|
|
@ -1319,6 +1513,17 @@
|
||||||
"path-is-absolute": "1.0.1",
|
"path-is-absolute": "1.0.1",
|
||||||
"readdirp": "2.2.1",
|
"readdirp": "2.2.1",
|
||||||
"upath": "1.2.0"
|
"upath": "1.2.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"glob-parent": {
|
||||||
|
"version": "5.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
|
||||||
|
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"is-glob": "4.0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@nodelib/fs.scandir": {
|
"@nodelib/fs.scandir": {
|
||||||
|
|
@ -4915,6 +5120,7 @@
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz",
|
||||||
"integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=",
|
"integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=",
|
||||||
|
"dev": true,
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"is-glob": "3.1.0",
|
"is-glob": "3.1.0",
|
||||||
|
|
@ -4925,6 +5131,7 @@
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz",
|
||||||
"integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=",
|
"integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=",
|
||||||
|
"dev": true,
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"is-extglob": "2.1.1"
|
"is-extglob": "2.1.1"
|
||||||
|
|
@ -7122,6 +7329,7 @@
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz",
|
||||||
"integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=",
|
"integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=",
|
||||||
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"path-exists": {
|
"path-exists": {
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@braid/vue-formulate": "^2.5.2",
|
"@braid/vue-formulate": "^2.5.2",
|
||||||
"@braid/vue-formulate-i18n": "^1.16.0",
|
"@braid/vue-formulate-i18n": "^1.16.0",
|
||||||
|
"@nextcloud/axios": "^1.6.0",
|
||||||
"@nextcloud/l10n": "^1.4.1",
|
"@nextcloud/l10n": "^1.4.1",
|
||||||
"@nextcloud/router": "^2.0.0",
|
"@nextcloud/router": "^2.0.0",
|
||||||
"@nextcloud/vue": "^3.7.0",
|
"@nextcloud/vue": "^3.7.0",
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@
|
||||||
import Content from '@nextcloud/vue/dist/Components/Content'
|
import Content from '@nextcloud/vue/dist/Components/Content'
|
||||||
import { generateUrl } from '@nextcloud/router'
|
import { generateUrl } from '@nextcloud/router'
|
||||||
import '@braid/vue-formulate/themes/snow/snow.scss'
|
import '@braid/vue-formulate/themes/snow/snow.scss'
|
||||||
const axios = require('axios').default
|
import axios from '@nextcloud/axios'
|
||||||
|
|
||||||
export default ({
|
export default ({
|
||||||
name: 'AgencyData',
|
name: 'AgencyData',
|
||||||
|
|
@ -103,7 +103,7 @@ export default ({
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
},
|
},
|
||||||
async submitHandler(data) {
|
async submitHandler(data) {
|
||||||
const response = await axios.put(generateUrl('/apps/agency/agencys/1'), data)
|
const response = await axios.put(generateUrl('/apps/agency/update'), data)
|
||||||
console.log(response)
|
console.log(response)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<script>
|
<script>
|
||||||
import Content from '@nextcloud/vue/dist/Components/Content'
|
import Content from '@nextcloud/vue/dist/Components/Content'
|
||||||
import { generateUrl } from '@nextcloud/router'
|
import { generateUrl } from '@nextcloud/router'
|
||||||
const axios = require('axios').default
|
import axios from '@nextcloud/axios'
|
||||||
// import '@braid/vue-formulate/themes/snow/snow.scss'
|
// import '@braid/vue-formulate/themes/snow/snow.scss'
|
||||||
// import { generateUrl } from '@nextcloud/router'
|
// import { generateUrl } from '@nextcloud/router'
|
||||||
// const axios = require('axios').default
|
// const axios = require('axios').default
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue