Skip to content

Commit

Permalink
Initial commit for Geolonia customization
Browse files Browse the repository at this point in the history
  • Loading branch information
keichan34 committed Aug 5, 2024
1 parent 3584040 commit da9c150
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 79 deletions.
2 changes: 0 additions & 2 deletions .github/FUNDING.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

11 changes: 0 additions & 11 deletions .github/ISSUE_TEMPLATE/other-issue.md

This file was deleted.

14 changes: 0 additions & 14 deletions .github/dependabot.yml

This file was deleted.

24 changes: 2 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,8 @@ jobs:
run: npm run build

- name: Upload to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist

# publish docker to GitHub registry
deploy-docker:
name: deploy/docker
runs-on: ubuntu-latest

if: ${{ github.event_name == 'push' }}

strategy:
fail-fast: false

steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- run: docker build -t ghcr.io/maplibre/maputnik:main .
- run: docker push ghcr.io/maplibre/maputnik:main
cname: editor.geolonia.com
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "''",
"scripts": {
"start": "vite",
"build": "tsc && vite build --base=/maputnik/",
"build": "tsc && vite build --base=/",
"lint": "eslint ./src ./cypress --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0",
"test": "cypress run",
"cy:open": "cypress open",
Expand Down
4 changes: 2 additions & 2 deletions src/components/AppToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ export default class AppToolbar extends React.Component<AppToolbarProps> {
className="maputnik-toolbar-logo"
target="blank"
rel="noreferrer noopener"
href="https://github.com/maplibre/maputnik"
href="https://github.com/geolonia/editor"
>
<img src={maputnikLogo} alt="Maputnik on GitHub" />
<h1>
<span className="maputnik-toolbar-name">{pkgJson.name}</span>
<span className="maputnik-toolbar-version">v{pkgJson.version}</span>
<span className="maputnik-toolbar-version">Geolonia v{pkgJson.version}</span>
</h1>
</a>
</div>
Expand Down
18 changes: 18 additions & 0 deletions src/config/styles.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
[
{
"id": "00-geolonia-basic-v1",
"title": "Geolonia Basic",
"url": "https://geoloniamaps.github.io/basic-v1/style.json",
"thumbnail": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAECAQAAAAHDYbIAAAAEUlEQVR42mP8/58BDhiJ4wAA974H/U5Xe1oAAAAASUVORK5CYII="
},
{
"id": "01-geolonia-gsi",
"title": "Geolonia GSI",
"url": "https://geoloniamaps.github.io/gsi/style.json",
"thumbnail": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAECAQAAAAHDYbIAAAAEUlEQVR42mP8/58BDhiJ4wAA974H/U5Xe1oAAAAASUVORK5CYII="
},
{
"id": "02-geolonia-smartcity-base",
"title": "Geolonia SmartCity Base",
"url": "https://smartcity-base.styles.geoloniamaps.com/style.json",
"thumbnail": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAECAQAAAAHDYbIAAAAEUlEQVR42mP8/58BDhiJ4wAA974H/U5Xe1oAAAAASUVORK5CYII="
},
{
"id": "0-empty-style",
"title": "Empty Style",
Expand Down

0 comments on commit da9c150

Please sign in to comment.