-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from bps-kota-bontang/staging
Initial Release: Implement CI Configuration, Style Improvements, and Various Fixes
- Loading branch information
Showing
28 changed files
with
573 additions
and
292 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release Serambi Kami | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release-please: | ||
name: Release Serambi Kami | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: googleapis/release-please-action@v4 | ||
id: release | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
release-type: node | ||
- uses: actions/checkout@v4 | ||
- name: tag major and minor versions | ||
if: ${{ steps.release.outputs.release_created }} | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
git remote add gh-token "https://${{ secrets.GH_TOKEN }}@github.com/googleapis/release-please-action.git" | ||
git tag -d v${{ steps.release.outputs.major }} || true | ||
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true | ||
git push origin :v${{ steps.release.outputs.major }} || true | ||
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true | ||
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}" | ||
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}" | ||
git push origin v${{ steps.release.outputs.major }} | ||
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/serambi.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>%VITE_APP_NAME%</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/serambi.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | ||
<title>%VITE_APP_NAME%</title> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import { Credential } from "@/types/Credential"; | ||
import { | ||
CheckCircleTwoTone, | ||
CloseCircleTwoTone, | ||
CopyOutlined, | ||
} from "@ant-design/icons"; | ||
import { App, Button, Input, Space } from "antd"; | ||
|
||
interface FormCredentialServiceProps { | ||
credential: Credential; | ||
} | ||
|
||
const FormCredentialService = ({ credential }: FormCredentialServiceProps) => { | ||
const { message } = App.useApp(); | ||
|
||
const handleCopy = (text?: string) => { | ||
if (!text) return; | ||
navigator.clipboard.writeText(text).then(() => { | ||
message.success({ | ||
content: "Kredensial berhasil disalin", | ||
}); | ||
}); | ||
}; | ||
return ( | ||
<div className="flex flex-col gap-3"> | ||
{credential.username && ( | ||
<> | ||
<span className="text-sm">Nama Pengguna</span> | ||
<Space.Compact> | ||
<Input.Password value={credential.username} /> | ||
<Button | ||
onClick={() => handleCopy(credential.username)} | ||
icon={<CopyOutlined />} | ||
/> | ||
</Space.Compact> | ||
</> | ||
)} | ||
{credential.password && ( | ||
<> | ||
<span className="text-sm">Kata Sandi</span> | ||
<Space.Compact> | ||
<Input.Password value={credential.password} /> | ||
<Button | ||
onClick={() => handleCopy(credential.password)} | ||
icon={<CopyOutlined />} | ||
/> | ||
</Space.Compact> | ||
</> | ||
)} | ||
<span className="italic"> | ||
{credential.hasSso ? ( | ||
<> | ||
<CheckCircleTwoTone twoToneColor={"#52c41a"} className="mr-1" /> | ||
Tersedia Single Sign On | ||
</> | ||
) : ( | ||
<> | ||
<CloseCircleTwoTone twoToneColor={"#ff4d4f"} className="mr-1" /> | ||
Tidak Tersedia Single Sign On | ||
</> | ||
)} | ||
</span> | ||
<span className="italic">Catatan: {credential.note ?? "-"}</span> | ||
</div> | ||
); | ||
}; | ||
|
||
export default FormCredentialService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Skeleton } from "antd"; | ||
|
||
const ServiceSkeletonItem = () => { | ||
return ( | ||
<div className="bg-white rounded-md drop-shadow-md p-5 gap-2 flex flex-col "> | ||
<Skeleton.Avatar /> | ||
<Skeleton paragraph /> | ||
<Skeleton.Button className="mt-2" /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ServiceSkeletonItem; |
Oops, something went wrong.