Compare commits
No commits in common. "e0b6eab7cf77c526b78c7461b762bab3856072d2" and "9c88d4c246cd82038f67f667f961a6861675d587" have entirely different histories.
e0b6eab7cf
...
9c88d4c246
@ -94,7 +94,6 @@ name: string}){
|
|||||||
const parent = useRef<HTMLDivElement>(null);
|
const parent = useRef<HTMLDivElement>(null);
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
(async ()=>{
|
(async ()=>{
|
||||||
console.log("animation mount on ",name);
|
|
||||||
const {default:autoAnimate} = await import("https://esm.sh/@formkit/auto-animate@0.7.0");
|
const {default:autoAnimate} = await import("https://esm.sh/@formkit/auto-animate@0.7.0");
|
||||||
parent.current && autoAnimate(parent.current)
|
parent.current && autoAnimate(parent.current)
|
||||||
})();
|
})();
|
||||||
@ -171,7 +170,7 @@ function filterInfo(info: Coperation[], filterList: FilterInfoOption) {
|
|||||||
export default function StockListUI(props: StockProps) {
|
export default function StockListUI(props: StockProps) {
|
||||||
const sig = useAsync<[PageCorpsInfo, CorpSimple[], CorpSimple[]]>(async () => {
|
const sig = useAsync<[PageCorpsInfo, CorpSimple[], CorpSimple[]]>(async () => {
|
||||||
const res = await Promise.all([
|
const res = await Promise.all([
|
||||||
fetch("/api/pages/" + encodeURIComponent(props.pageName)),
|
fetch("/api/pages/" + props.pageName),
|
||||||
fetch("/api/kospi"),
|
fetch("/api/kospi"),
|
||||||
fetch("/api/kosdaq"),
|
fetch("/api/kosdaq"),
|
||||||
]);
|
]);
|
||||||
|
5
main.ts
5
main.ts
@ -12,7 +12,4 @@ import manifest from "./fresh.gen.ts";
|
|||||||
import twindPlugin from "$fresh/plugins/twind.ts";
|
import twindPlugin from "$fresh/plugins/twind.ts";
|
||||||
import twindConfig from "./twind.config.ts";
|
import twindConfig from "./twind.config.ts";
|
||||||
|
|
||||||
await start(manifest, {
|
await start(manifest, { plugins: [twindPlugin(twindConfig)] });
|
||||||
port: 12001,
|
|
||||||
plugins: [twindPlugin(twindConfig)]
|
|
||||||
});
|
|
||||||
|
@ -33,7 +33,7 @@ export default function Home({data}: PageProps<PageDescription[]>) {
|
|||||||
<ul>
|
<ul>
|
||||||
{
|
{
|
||||||
data.map(x=><li class="my-2">
|
data.map(x=><li class="my-2">
|
||||||
<a class="p-2 block hover:bg-gray-300 bg-white rounded" href={`/pages/${encodeURIComponent(x.name)}`}>
|
<a class="p-2 block hover:bg-gray-300 bg-white rounded" href={`/pages/${x.name}`}>
|
||||||
{x.name}
|
{x.name}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user