@sikka/hawa 0.1.78 → 0.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/hawa-ci.yml +11 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/elements/BackToTop.tsx +1 -1
- package/src/layout/AppLayout.tsx +17 -12
|
@@ -71,10 +71,12 @@ jobs:
|
|
|
71
71
|
|
|
72
72
|
- name: Change working directory to ./landing
|
|
73
73
|
run: cd ./landing
|
|
74
|
+
|
|
74
75
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
75
76
|
uses: actions/setup-node@v2
|
|
76
77
|
with:
|
|
77
78
|
node-version: ${{ matrix.node-version }}
|
|
79
|
+
|
|
78
80
|
- name: Install Hawa Landing
|
|
79
81
|
run: |
|
|
80
82
|
rm -fr /home/cloudpanel/htdocs/hawa.style || true
|
|
@@ -84,6 +86,14 @@ jobs:
|
|
|
84
86
|
npm install
|
|
85
87
|
npm run build --if-present
|
|
86
88
|
ln -s /var/www/html/sikka-software/_work/Hawa/Hawa/landing /home/cloudpanel/htdocs/hawa.style
|
|
89
|
+
|
|
90
|
+
- name: Stop and Delete Previous PM2 Process
|
|
91
|
+
run: |
|
|
87
92
|
pm2 stop hawa-landing || true
|
|
88
93
|
pm2 delete hawa-landing || true
|
|
89
|
-
|
|
94
|
+
|
|
95
|
+
- name: Start Hawa Landing with PM2
|
|
96
|
+
run: pm2 start npm --name "hawa-landing" -- start || true
|
|
97
|
+
|
|
98
|
+
- name: Save PM2 Process List
|
|
99
|
+
run: pm2 save || true
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6047,7 +6047,10 @@ var BackToTop = function(_param) {
|
|
|
6047
6047
|
setVisible(scrollTop >= rect2.height + (props.paddingThreshold || 100));
|
|
6048
6048
|
};
|
|
6049
6049
|
var backToTop = function() {
|
|
6050
|
-
props.anchor.current.scrollTo(
|
|
6050
|
+
props.anchor.current.scrollTo({
|
|
6051
|
+
top: 0,
|
|
6052
|
+
behavior: "smooth"
|
|
6053
|
+
});
|
|
6051
6054
|
};
|
|
6052
6055
|
(0, import_react42.useEffect)(function() {
|
|
6053
6056
|
if (!props.anchor.current) return;
|
|
@@ -7614,7 +7617,10 @@ var AppLayout = function(_param) {
|
|
|
7614
7617
|
direction: isRTL ? "rtl" : "ltr",
|
|
7615
7618
|
trigger: /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
7616
7619
|
className: "relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600"
|
|
7617
|
-
}, /* @__PURE__ */ import_react61.default.createElement("
|
|
7620
|
+
}, props.avatarImage ? /* @__PURE__ */ import_react61.default.createElement("img", {
|
|
7621
|
+
src: props.avatarImage,
|
|
7622
|
+
alt: "User Avatar"
|
|
7623
|
+
}) : /* @__PURE__ */ import_react61.default.createElement("svg", {
|
|
7618
7624
|
"aria-label": "Avatar Icon",
|
|
7619
7625
|
className: "absolute -left-1 h-10 w-10 text-gray-400",
|
|
7620
7626
|
fill: "currentColor",
|
package/dist/index.mjs
CHANGED
|
@@ -5762,7 +5762,7 @@ var BackToTop = ({ ...props }) => {
|
|
|
5762
5762
|
setVisible(scrollTop >= rect2.height + (props.paddingThreshold || 100));
|
|
5763
5763
|
};
|
|
5764
5764
|
const backToTop = () => {
|
|
5765
|
-
props.anchor.current.scrollTo(0,
|
|
5765
|
+
props.anchor.current.scrollTo({ top: 0, behavior: "smooth" });
|
|
5766
5766
|
};
|
|
5767
5767
|
useEffect16(() => {
|
|
5768
5768
|
if (!props.anchor.current)
|
|
@@ -7591,7 +7591,7 @@ var AppLayout = ({
|
|
|
7591
7591
|
side: "bottom",
|
|
7592
7592
|
sideOffset: 5,
|
|
7593
7593
|
direction: isRTL ? "rtl" : "ltr",
|
|
7594
|
-
trigger: /* @__PURE__ */ React75.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600" }, /* @__PURE__ */ React75.createElement(
|
|
7594
|
+
trigger: /* @__PURE__ */ React75.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ React75.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React75.createElement(
|
|
7595
7595
|
"svg",
|
|
7596
7596
|
{
|
|
7597
7597
|
"aria-label": "Avatar Icon",
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export const BackToTop: FC<BackToTopTypes> = ({ ...props }) => {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
const backToTop = () => {
|
|
39
|
-
props.anchor.current.scrollTo(0,
|
|
39
|
+
props.anchor.current.scrollTo({ top: 0, behavior: "smooth" })
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// FIXME: Observers and listeners run twice
|
package/src/layout/AppLayout.tsx
CHANGED
|
@@ -21,6 +21,7 @@ type AppLayoutTypes = {
|
|
|
21
21
|
topBar?: boolean
|
|
22
22
|
username?: string
|
|
23
23
|
email?: string
|
|
24
|
+
avatarImage?: any
|
|
24
25
|
drawerSize?: "sm" | "md" | "large"
|
|
25
26
|
profileMenuItems?: MenuItemType[]
|
|
26
27
|
onSettingsClick?: () => void
|
|
@@ -205,18 +206,22 @@ export const AppLayout: React.FunctionComponent<AppLayoutTypes> = ({
|
|
|
205
206
|
direction={isRTL ? "rtl" : "ltr"}
|
|
206
207
|
trigger={
|
|
207
208
|
<div className="relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600">
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
209
|
+
{props.avatarImage ? (
|
|
210
|
+
<img src={props.avatarImage} alt="User Avatar" />
|
|
211
|
+
) : (
|
|
212
|
+
<svg
|
|
213
|
+
aria-label="Avatar Icon"
|
|
214
|
+
className="absolute -left-1 h-10 w-10 text-gray-400"
|
|
215
|
+
fill="currentColor"
|
|
216
|
+
viewBox="0 0 20 20"
|
|
217
|
+
>
|
|
218
|
+
<path
|
|
219
|
+
fillRule="evenodd"
|
|
220
|
+
d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z"
|
|
221
|
+
clipRule="evenodd"
|
|
222
|
+
></path>
|
|
223
|
+
</svg>
|
|
224
|
+
)}
|
|
220
225
|
</div>
|
|
221
226
|
}
|
|
222
227
|
items={props.profileMenuItems}
|