Compare commits
No commits in common. "main" and "dev-new-ahmad" have entirely different histories.
main
...
dev-new-ah
34
.drone.yml
34
.drone.yml
|
|
@ -1,34 +0,0 @@
|
|||
kind: pipeline
|
||||
type: ssh
|
||||
name: humas-fe-build
|
||||
|
||||
server:
|
||||
host:
|
||||
from_secret: ssh_host
|
||||
user:
|
||||
from_secret: ssh_user
|
||||
ssh_key:
|
||||
from_secret: ssh_key
|
||||
|
||||
steps:
|
||||
- name: prepare repo
|
||||
when:
|
||||
branch:
|
||||
- prod
|
||||
commands:
|
||||
- rm -rf /opt/build/web-humas-fe
|
||||
- mkdir -p /opt/build/web-humas-fe
|
||||
- cd /opt/build
|
||||
- git clone http://38.47.180.165:3000/humas/web-humas-fe.git
|
||||
- cd /opt/build/web-humas-fe
|
||||
- git checkout $DRONE_BRANCH
|
||||
|
||||
- name: build image
|
||||
when:
|
||||
branch:
|
||||
- prod
|
||||
commands:
|
||||
- docker login 38.47.180.165:3000 -u administrator -p HarborDockerImageRep0
|
||||
- cd /opt/build/web-humas-fe
|
||||
- docker build -t 38.47.180.165:3000/humas/web-humas-fe:$DRONE_BRANCH .
|
||||
- docker push 38.47.180.165:3000/humas/web-humas-fe:$DRONE_BRANCH
|
||||
|
|
@ -9,13 +9,12 @@ build-dev:
|
|||
- main
|
||||
image: docker:stable
|
||||
services:
|
||||
- name: docker:dind
|
||||
command: ["--insecure-registry=103.82.242.92:8900"]
|
||||
- docker:dind
|
||||
script:
|
||||
- docker logout
|
||||
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 103.82.242.92:8900
|
||||
- docker build -t 103.82.242.92:8900/humas/web-humas-fe:dev .
|
||||
- docker push 103.82.242.92:8900/humas/web-humas-fe:dev
|
||||
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN registry.gitlab.com
|
||||
- docker build -t registry.gitlab.com/hanifsalafi/web-humas-polri:dev .
|
||||
- docker push registry.gitlab.com/hanifsalafi/web-humas-polri:dev
|
||||
|
||||
auto-deploy:
|
||||
stage: deploy
|
||||
|
|
|
|||
|
|
@ -1504,17 +1504,3 @@ export const GoogleIcon = ({
|
|||
</path>
|
||||
</svg>
|
||||
);
|
||||
|
||||
|
||||
|
||||
export const TimesIcon = ({
|
||||
size,
|
||||
height = 24,
|
||||
width = 24,
|
||||
fill = "currentColor",
|
||||
...props
|
||||
}: IconSvgProps) => (
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" className="size-6">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
|
||||
</svg>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -92,20 +92,20 @@ const sideBarDummyData = [
|
|||
statusName: "Active",
|
||||
childModule: null,
|
||||
},
|
||||
// {
|
||||
// id: 4,
|
||||
// name: "E-Magazine",
|
||||
// moduleId: 652,
|
||||
// moduleName: "Dashboard",
|
||||
// modulePathUrl: "/admin/e-magazine",
|
||||
// parentId: -1,
|
||||
// icon: <TableIcon />,
|
||||
// position: 1,
|
||||
// statusId: 1,
|
||||
// childMenu: [],
|
||||
// statusName: "Active",
|
||||
// childModule: null,
|
||||
// },
|
||||
{
|
||||
id: 4,
|
||||
name: "E-Magazine",
|
||||
moduleId: 652,
|
||||
moduleName: "Dashboard",
|
||||
modulePathUrl: "/admin/e-magazine",
|
||||
parentId: -1,
|
||||
icon: <TableIcon />,
|
||||
position: 1,
|
||||
statusId: 1,
|
||||
childMenu: [],
|
||||
statusName: "Active",
|
||||
childModule: null,
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
name: "Master",
|
||||
|
|
@ -121,34 +121,34 @@ const sideBarDummyData = [
|
|||
statusName: "Active",
|
||||
childModule: null,
|
||||
},
|
||||
// {
|
||||
// id: 6,
|
||||
// name: "Master Menu",
|
||||
// moduleId: 652,
|
||||
// moduleName: "Form Custom",
|
||||
// modulePathUrl: "/admin/master-menu",
|
||||
// parentId: -1,
|
||||
// icon: <FormCustomIcon />,
|
||||
// position: 1,
|
||||
// statusId: 1,
|
||||
// childMenu: [],
|
||||
// statusName: "Active",
|
||||
// childModule: null,
|
||||
// },
|
||||
// {
|
||||
// id: 7,
|
||||
// name: "Master Module",
|
||||
// moduleId: 653,
|
||||
// moduleName: "Form Horizontal",
|
||||
// modulePathUrl: "/admin/master-module",
|
||||
// parentId: -1,
|
||||
// icon: <FormHorizontalIcon />,
|
||||
// position: 1,
|
||||
// statusId: 1,
|
||||
// childMenu: [],
|
||||
// statusName: "Active",
|
||||
// childModule: null,
|
||||
// },
|
||||
{
|
||||
id: 6,
|
||||
name: "Master Menu",
|
||||
moduleId: 652,
|
||||
moduleName: "Form Custom",
|
||||
modulePathUrl: "/admin/master-menu",
|
||||
parentId: -1,
|
||||
icon: <FormCustomIcon />,
|
||||
position: 1,
|
||||
statusId: 1,
|
||||
childMenu: [],
|
||||
statusName: "Active",
|
||||
childModule: null,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
name: "Master Module",
|
||||
moduleId: 653,
|
||||
moduleName: "Form Horizontal",
|
||||
modulePathUrl: "/admin/master-module",
|
||||
parentId: -1,
|
||||
icon: <FormHorizontalIcon />,
|
||||
position: 1,
|
||||
statusId: 1,
|
||||
childMenu: [],
|
||||
statusName: "Active",
|
||||
childModule: null,
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
name: "Master User",
|
||||
|
|
@ -163,20 +163,20 @@ const sideBarDummyData = [
|
|||
statusName: "Active",
|
||||
childModule: null,
|
||||
},
|
||||
// {
|
||||
// id: 9,
|
||||
// name: "Master User Level",
|
||||
// moduleId: 655,
|
||||
// moduleName: "Form User Level",
|
||||
// modulePathUrl: "/admin/master-user-level",
|
||||
// parentId: -1,
|
||||
// icon: <FormLayoutIcon />,
|
||||
// position: 1,
|
||||
// statusId: 1,
|
||||
// childMenu: [],
|
||||
// statusName: "Active",
|
||||
// childModule: null,
|
||||
// },
|
||||
{
|
||||
id: 9,
|
||||
name: "Master User Level",
|
||||
moduleId: 655,
|
||||
moduleName: "Form User Level",
|
||||
modulePathUrl: "/admin/master-user-level",
|
||||
parentId: -1,
|
||||
icon: <FormLayoutIcon />,
|
||||
position: 1,
|
||||
statusId: 1,
|
||||
childMenu: [],
|
||||
statusName: "Active",
|
||||
childModule: null,
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
name: "Master User Role",
|
||||
|
|
|
|||
|
|
@ -64,10 +64,10 @@ export default function ArticleTable() {
|
|||
|
||||
{ name: "No", uid: "no" },
|
||||
{ name: "Judul", uid: "title" },
|
||||
{ name: "Kategori", uid: "categoryName" },
|
||||
{ name: "Tanggal Unggah", uid: "createdAt" },
|
||||
{ name: "Kreator", uid: "createdByName" },
|
||||
// { name: "Sumber", uid: "source" },
|
||||
{ name: "Kategori", uid: "articleCategory" },
|
||||
{ name: "Tanggal Unggah", uid: "createdDate" },
|
||||
{ name: "Kreator", uid: "creator" },
|
||||
{ name: "Sumber", uid: "source" },
|
||||
// { name: "Users", uid: "users" },
|
||||
// { name: "Status", uid: "status" },
|
||||
{ name: "Aksi", uid: "actions" },
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
"tailwind-variants": "^0.1.18",
|
||||
"tailwindcss": "3.3.5",
|
||||
"typescript": "5.0.4",
|
||||
"zod": "^3.23.8"
|
||||
"zod": "^1.11.17"
|
||||
}
|
||||
},
|
||||
"node_modules/@aashutoshrathi/word-wrap": {
|
||||
|
|
@ -3360,6 +3360,12 @@
|
|||
"url": "https://github.com/sponsors/kossnocorp"
|
||||
}
|
||||
},
|
||||
"node_modules/dayjs": {
|
||||
"version": "1.11.10",
|
||||
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
|
||||
"integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/debug": {
|
||||
"version": "4.3.4",
|
||||
"license": "MIT",
|
||||
|
|
@ -6854,12 +6860,12 @@
|
|||
}
|
||||
},
|
||||
"node_modules/zod": {
|
||||
"version": "3.23.8",
|
||||
"resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz",
|
||||
"integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==",
|
||||
"version": "3.22.4",
|
||||
"resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz",
|
||||
"integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/colinhacks"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -57,6 +57,6 @@
|
|||
"tailwind-variants": "^0.1.18",
|
||||
"tailwindcss": "3.3.5",
|
||||
"typescript": "5.0.4",
|
||||
"zod": "^3.23.8"
|
||||
"zod": "^1.11.17"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
import axiosDisestagesInstance2 from "./axios-disestages-instance-2";
|
||||
|
||||
export async function httpPostDisestages(pathUrl: any, headers: any, data?: any) {
|
||||
const response = await axiosDisestagesInstance2
|
||||
.post(pathUrl, data, { headers })
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
return error.response;
|
||||
});
|
||||
console.log("Response base svc : ", response);
|
||||
if (response?.status == 200 || response?.status == 201) {
|
||||
return {
|
||||
error: false,
|
||||
message: "success",
|
||||
data: response?.data,
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
error: true,
|
||||
message: response?.data?.message || response?.data || null,
|
||||
data: null,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function httpGetDisestages(pathUrl: any, headers: any) {
|
||||
const response = await axiosDisestagesInstance2
|
||||
.get(pathUrl, { headers })
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
return error.response;
|
||||
});
|
||||
console.log("Response base svc : ", response);
|
||||
if (response?.status == 200 || response?.status == 201) {
|
||||
return {
|
||||
error: false,
|
||||
message: "success",
|
||||
data: response?.data,
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
error: true,
|
||||
message: response?.data?.message || response?.data || null,
|
||||
data: null,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// export async function httpDelete(pathUrl: any) {
|
||||
// const response = await axiosDisestagesInstance
|
||||
// .delete(pathUrl, data, { headers })
|
||||
// .catch(function (error) {
|
||||
// console.log(error);
|
||||
// return error.response;
|
||||
// });
|
||||
// console.log("Response base svc : ", response);
|
||||
// if (response?.status == 200 || response?.status == 201) {
|
||||
// return {
|
||||
// error: false,
|
||||
// message: "success",
|
||||
// data: response?.data,
|
||||
// };
|
||||
// } else {
|
||||
// return {
|
||||
// error: true,
|
||||
// message: response?.data?.message || response?.data || null,
|
||||
// data: null,
|
||||
// };
|
||||
// }
|
||||
// }
|
||||
Loading…
Reference in New Issue