Skip to content

Commit

Permalink
Move cgi files to scripts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriiNazarenkoTine committed Sep 18, 2024
1 parent 5f3b5b6 commit 3bc9fde
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
24 changes: 12 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPK_NAME = rr-manager
SPK_VERS = 2.0
SPK_REV = 70
SPK_REV = 71
SPK_ICON = src/rr-manager.png

DSM_UI_DIR = ui
Expand Down Expand Up @@ -65,20 +65,20 @@ rr-manager_extra_install:

install -m 755 -d $(STAGING_DIR)/ui/
install -m 755 -d $(STAGING_DIR)/ui/libs/
install -m 755 -d $(STAGING_DIR)/ui/webapi/
install -m 755 -d $(STAGING_DIR)/ui/scripts/
install -m 755 -d $(STAGING_DIR)/ui/images/
install -m 755 -d $(STAGING_DIR)/ui/images/1x

install -m 755 src/webapi/checkUpdateStatus.cgi $(STAGING_DIR)/ui/webapi/checkUpdateStatus.cgi
install -m 755 src/webapi/getAddons.cgi $(STAGING_DIR)/ui/webapi/getAddons.cgi
install -m 755 src/webapi/getAvailableUpdates.cgi $(STAGING_DIR)/ui/webapi/getAvailableUpdates.cgi
install -m 755 src/webapi/getConfig.cgi $(STAGING_DIR)/ui/webapi/getConfig.cgi
install -m 755 src/webapi/getModules.cgi $(STAGING_DIR)/ui/webapi/getModules.cgi
install -m 755 src/webapi/getNetworkInfo.cgi $(STAGING_DIR)/ui/webapi/getNetworkInfo.cgi
install -m 755 src/webapi/getRrReleaseInfo.cgi $(STAGING_DIR)/ui/webapi/getRrReleaseInfo.cgi
install -m 755 src/webapi/readUpdateFile.cgi $(STAGING_DIR)/ui/webapi/readUpdateFile.cgi
install -m 755 src/webapi/uploadConfigFile.cgi $(STAGING_DIR)/ui/webapi/uploadConfigFile.cgi
install -m 755 src/webapi/uploadUpdateFileInfo.cgi $(STAGING_DIR)/ui/webapi/uploadUpdateFileInfo.cgi
install -m 755 src/scripts/checkUpdateStatus.cgi $(STAGING_DIR)/ui/scripts/checkUpdateStatus.cgi
install -m 755 src/scripts/getAddons.cgi $(STAGING_DIR)/ui/scripts/getAddons.cgi
install -m 755 src/scripts/getAvailableUpdates.cgi $(STAGING_DIR)/ui/scripts/getAvailableUpdates.cgi
install -m 755 src/scripts/getConfig.cgi $(STAGING_DIR)/ui/scripts/getConfig.cgi
install -m 755 src/scripts/getModules.cgi $(STAGING_DIR)/ui/scripts/getModules.cgi
install -m 755 src/scripts/getNetworkInfo.cgi $(STAGING_DIR)/ui/scripts/getNetworkInfo.cgi
install -m 755 src/scripts/getRrReleaseInfo.cgi $(STAGING_DIR)/ui/scripts/getRrReleaseInfo.cgi
install -m 755 src/scripts/readUpdateFile.cgi $(STAGING_DIR)/ui/scripts/readUpdateFile.cgi
install -m 755 src/scripts/uploadConfigFile.cgi $(STAGING_DIR)/ui/scripts/uploadConfigFile.cgi
install -m 755 src/scripts/uploadUpdateFileInfo.cgi $(STAGING_DIR)/ui/scripts/uploadUpdateFileInfo.cgi

install -m 644 src/ui/alias.syno-app-portal.RRM.conf $(STAGING_DIR)/ui/alias.syno-app-portal.RRM.conf
install -m 644 src/ui/config $(STAGING_DIR)/ui/config
Expand Down
4 changes: 2 additions & 2 deletions src/conf/privilege_
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
],
"executable": [
{
"relpath": "ui/webapi/getConfig.cgi",
"relpath": "ui/scripts/getConfig.cgi",
"run-as": "package"
},
{
"relpath": "ui/webapi/getAddons.cgi",
"relpath": "ui/scripts/getAddons.cgi",
"run-as": "package"
}
]
Expand Down
2 changes: 1 addition & 1 deletion src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ service_postinst ()

echo ${separator}
echo "Install packages to the app/libs folder"
${SYNOPKG_PKGDEST}/env/bin/pip install --target ${SYNOPKG_PKGDEST}/ui/webapi/libs/ -r ${SYNOPKG_PKGDEST}/share/wheelhouse/requirements.txt
${SYNOPKG_PKGDEST}/env/bin/pip install --target ${SYNOPKG_PKGDEST}/ui/scripts/libs/ -r ${SYNOPKG_PKGDEST}/share/wheelhouse/requirements.txt

echo ${separator}
if [ "${SYNOPKG_PKG_STATUS}" == "INSTALL" ]; then
Expand Down
2 changes: 1 addition & 1 deletion src/src/tabs/addons.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default
appWindow: this.appWin,
restful: true,
root: "result",
url: `/webman/3rdparty/rr-manager/webapi/getAddons.cgi`,
url: `/webman/3rdparty/rr-manager/scripts/getAddons.cgi`,
idProperty: "name",
fields: [{
name: 'name',
Expand Down
2 changes: 1 addition & 1 deletion src/src/tabs/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Ext.define("SYNOCOMMUNITY.RRManager.Debug.Main", {
(this.owner = e.owner),
this.callParent([this.fillConfig(e)]);
},
_prefix: '/webman/3rdparty/rr-manager/webapi/',
_prefix: '/webman/3rdparty/rr-manager/scripts/',
callCustomScript: function (scriptName) {

return new Promise((resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion src/src/utils/synoApiProvider.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default
SYNOCOMMUNITY.RRManager.SynoApiProvider = {
sendWebAPI: null,
_prefix: '/webman/3rdparty/rr-manager/webapi/',
_prefix: '/webman/3rdparty/rr-manager/scripts/',
init: function (sendWebAPI, findAppWindow) {
this.sendWebAPI = sendWebAPI;
},
Expand Down
2 changes: 1 addition & 1 deletion src/src/utils/updateHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default
self.hideProgressIndicator();
self.helper.unmask(self.owner);
self.owner.getEl()?.unmask();
self.showMsg(self.helper.formatString(self.helper.V('upload_file_dialog', 'unable_update_rr_msg'), responseText?.error ?? "No response from the webapi/readUpdateFile.cgi script."));
self.showMsg(self.helper.formatString(self.helper.V('upload_file_dialog', 'unable_update_rr_msg'), responseText?.error ?? "No response from the scripts/readUpdateFile.cgi script."));
return;
}
const configName = 'rrUpdateFileVersion';
Expand Down
2 changes: 1 addition & 1 deletion src/ui/rr-manager.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Ext.define("SYNOCOMMUNITY.RRManager.Widget", {
that.sendWebAPI(args);
});
},
_prefix: '/webman/3rdparty/rr-manager/webapi/',
_prefix: '/webman/3rdparty/rr-manager/scripts/',
callCustomScript: function (scriptName) {
return new Promise((resolve, reject) => {
Ext.Ajax.request({
Expand Down

0 comments on commit 3bc9fde

Please sign in to comment.