Skip to content

Commit 9b05087

Browse files
chore: wip
1 parent 758638e commit 9b05087

File tree

20 files changed

+1571
-9
lines changed

20 files changed

+1571
-9
lines changed

bun.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"packages/nuxt": {
2424
"name": "ts-maps-nuxt",
25-
"version": "0.2.5",
25+
"version": "0.2.6",
2626
"dependencies": {
2727
"@nuxt/kit": "^4.1.2",
2828
"ts-maps": "workspace:*",
@@ -39,18 +39,19 @@
3939
},
4040
"packages/nuxt/playground": {
4141
"name": "my-module-playground",
42-
"version": "0.2.5",
42+
"version": "0.2.6",
4343
"dependencies": {
4444
"nuxt": "^4.1.2",
4545
"ts-maps-nuxt": "workspace:*",
4646
},
4747
},
4848
"packages/react": {
4949
"name": "ts-maps-react",
50-
"version": "0.2.5",
50+
"version": "0.2.6",
5151
"dependencies": {
5252
"@vitejs/plugin-react": "^5.0.4",
5353
"ts-maps": "workspace:*",
54+
"ts-maps-react": "../../packages/react",
5455
"vite": "^7.1.11",
5556
"vite-plugin-dts": "^4.5.4",
5657
},
@@ -68,7 +69,7 @@
6869
},
6970
"packages/ts-maps": {
7071
"name": "ts-maps",
71-
"version": "0.2.5",
72+
"version": "0.2.6",
7273
"devDependencies": {
7374
"bunfig": "^0.15.0",
7475
"lint-staged": "^16.2.3",
@@ -77,7 +78,7 @@
7778
},
7879
"packages/vue": {
7980
"name": "ts-maps-vue",
80-
"version": "0.2.5",
81+
"version": "0.2.6",
8182
"dependencies": {
8283
"@vitejs/plugin-vue": "^6.0.1",
8384
"bun-types": "^1.2.23",
@@ -105,7 +106,7 @@
105106
},
106107
"playground": {
107108
"name": "playground",
108-
"version": "0.2.5",
109+
"version": "0.2.6",
109110
"dependencies": {
110111
"ts-maps": "workspace:*",
111112
},

packages/nuxt/playground/app.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ const mapOptions = [
2828
]
2929
3030
const options = reactive<Omit<MapOptions, 'selector'>>({
31+
map: {
32+
name: 'world',
33+
projection: 'miller',
34+
},
3135
backgroundColor: '#ffffff',
3236
zoomOnScroll: true,
3337
zoomButtons: true,
@@ -131,7 +135,7 @@ function handleMarkerClick(_event: MouseEvent, index: string) {
131135
}
132136
133137
function handleLoaded() {
134-
options.projection = 'albers'
138+
options.map.projection = 'mercator'
135139
lastEvent.value = {
136140
type: 'Map Loaded',
137141
time: new Date().toLocaleTimeString(),
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts

playground/react-samples/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20+
21+
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22+
23+
## Learn More
24+
25+
To learn more about Next.js, take a look at the following resources:
26+
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29+
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31+
32+
## Deploy on Vercel
33+
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35+
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
25.3 KB
Binary file not shown.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@import "tailwindcss";
2+
3+
:root {
4+
--background: #ffffff;
5+
--foreground: #171717;
6+
}
7+
8+
@theme inline {
9+
--color-background: var(--background);
10+
--color-foreground: var(--foreground);
11+
--font-sans: var(--font-geist-sans);
12+
--font-mono: var(--font-geist-mono);
13+
}
14+
15+
@media (prefers-color-scheme: dark) {
16+
:root {
17+
--background: #0a0a0a;
18+
--foreground: #ededed;
19+
}
20+
}
21+
22+
body {
23+
background: var(--background);
24+
color: var(--foreground);
25+
font-family: Arial, Helvetica, sans-serif;
26+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import type { Metadata } from "next";
2+
import { Geist, Geist_Mono } from "next/font/google";
3+
import "./globals.css";
4+
5+
const geistSans = Geist({
6+
variable: "--font-geist-sans",
7+
subsets: ["latin"],
8+
});
9+
10+
const geistMono = Geist_Mono({
11+
variable: "--font-geist-mono",
12+
subsets: ["latin"],
13+
});
14+
15+
export const metadata: Metadata = {
16+
title: "Create Next App",
17+
description: "Generated by create next app",
18+
};
19+
20+
export default function RootLayout({
21+
children,
22+
}: Readonly<{
23+
children: React.ReactNode;
24+
}>) {
25+
return (
26+
<html lang="en">
27+
<body
28+
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
29+
>
30+
{children}
31+
</body>
32+
</html>
33+
);
34+
}

0 commit comments

Comments
 (0)