jeawin-astro 3.0.59 → 3.0.60
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/package.json
CHANGED
|
@@ -14,7 +14,7 @@ import loadingImg from "../assets/images/loading.gif";
|
|
|
14
14
|
import SearchInput from "./formitem/searchinput.astro";
|
|
15
15
|
const { channel_name, site_id, list_tpl } = Astro.props;
|
|
16
16
|
|
|
17
|
-
const { all_langs, jeawin_api_domain, jeawin_form_api_domain } = Astro.locals;
|
|
17
|
+
const { all_langs, jeawin_api_domain, jeawin_form_api_domain, base_url } = Astro.locals;
|
|
18
18
|
|
|
19
19
|
const site = Astro.site;
|
|
20
20
|
|
|
@@ -28,8 +28,8 @@ const totalRecordsLang = render_lang(all_langs, "Total Records");
|
|
|
28
28
|
let nav_wrapper_class = "isolate inline-flex -space-x-px rounded-md shadow-xs";
|
|
29
29
|
|
|
30
30
|
let btn_class =
|
|
31
|
-
"relative inline-flex items-center px-4 py-2 text-sm text-gray-400 ring-1 ring-inset ring-gray-300
|
|
32
|
-
let btn_active_class = `relative z-10 inline-flex items-center bg-[var(--themeColor)] px-4 py-2 text-sm font-semibold text-white
|
|
31
|
+
"relative inline-flex items-center px-4 py-2 text-sm text-gray-400 ring-1 ring-inset ring-gray-300 focus:z-20 focus:outline-offset-0";
|
|
32
|
+
let btn_active_class = `relative z-10 inline-flex items-center bg-[var(--themeColor)] px-4 py-2 text-sm font-semibold !text-white ring-1 ring-inset ring-gray-300 focus:z-20 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--themeColor)]`;
|
|
33
33
|
---
|
|
34
34
|
|
|
35
35
|
<section class="py-12">
|
|
@@ -67,7 +67,7 @@ let btn_active_class = `relative z-10 inline-flex items-center bg-[var(--themeCo
|
|
|
67
67
|
<div class="max-w-screen-lg mx-auto">
|
|
68
68
|
<div class="px-4">
|
|
69
69
|
<search-result-list
|
|
70
|
-
data-site={
|
|
70
|
+
data-site={base_url}
|
|
71
71
|
data-site_id={site_id}
|
|
72
72
|
data-jeawin_form_api_domain={jeawin_form_api_domain}
|
|
73
73
|
data-list_tpl={list_tpl}
|
|
@@ -30,7 +30,7 @@ export function SearchResultListInit() {
|
|
|
30
30
|
<a
|
|
31
31
|
class="inline-block relative transition-all w-min-content "
|
|
32
32
|
target="_blank"
|
|
33
|
-
href="<%= lists[i].node_url %>"
|
|
33
|
+
href="<%= site %><%= lists[i].node_url %>"
|
|
34
34
|
title="<%= lists[i].node_title %>"
|
|
35
35
|
><%= lists[i].node_title %></a
|
|
36
36
|
>
|
|
@@ -49,7 +49,7 @@ export function SearchResultListInit() {
|
|
|
49
49
|
<ul class="list-inline g-mb-10 g-mb-0--lg">
|
|
50
50
|
<li class="list-inline-item g-mr-30">
|
|
51
51
|
<a
|
|
52
|
-
href="<%= lists[i].node_url %>"
|
|
52
|
+
href="<%= site %><%= lists[i].node_url %>"
|
|
53
53
|
title="<%= lists[i].node_title %>"
|
|
54
54
|
>${readmorelang}</a
|
|
55
55
|
>
|