Git Product home page Git Product logo

itf-vendingmachine's Introduction

筑波大学自販機 Map

筑波大学構内の自動販売機の場所を一覧できるサイト

プライバシーに関して

このサービスではあなたの位置情報を取り扱います。 しかし、位置情報はあなたのブラウザのみに共有され、その他第三者に共有されることはありません。

ライセンス

copyright (c) 2022 eniehack

このソフトウェアは Apache License 2.0 または GNU Affero General Public License v3.0 only でライセンスされます。 あなたはこれら 2 つからライセンスを選ぶことができます。

また、src/lib/assets/bottle.webpは、tabler-icons (MIT ライセンス) から取得し、変換されたファイルです。

MIT License

Copyright (c) 2020-2022 Paweł Kuna

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Install

主に開発者向けです

  1. clone & cd
  2. pnpm i
  3. pnpm run dev

貢献する

以下はこのサイト自体を改善する場合の方法を述べています。 プログラムが書けなくても貢献する方法があります。 詳しくはこちら

  1. Fork it (https://github.com/eniehack/henly-web/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributers

itf-vendingmachine's People

Contributors

eniehack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

itf-vendingmachine's Issues

不要なCSSルールの削除

bulmaを使っているが、不要なCSSルールが大量に出るのでこれらを削除したい

メリット

  • 通信量の削減、ロード時間の短縮

手法

  • PostCSSの導入
  • postcss

懸念点

  • PostCSSとSCSSの共存が可能か?
    • bulmaがmixin付きでplain-cssを提供していれば共存可能
    • またはPostCSSでSCSSが取り扱えれば可能

Astro.jsへの移行

現状、<svelte:head>でtitleなどを挿入しているが、SEO対策とOGPが難しいのでAstro.jsを導入したい

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite + Svelte + TS</title>
    <script type="module" crossorigin src="/assets/index.b76bd782.js"></script>
    <link rel="stylesheet" href="/assets/index.826afd85.css">
  </head>
  <body>
    <div id="app"></div>

  </body>
</html>

OGPの生成

  • client side generationになっている気がのでEdge Functionsに載せないと厳しいかも

localstorageを更新する方法を考える

  • リロードが走った際に現在時刻とlocalstorageを比較して1〜2日経過した際にデータを取得するようにする?
  • ReadableにsetIntervalで数日おきに実行する

マーカー画像がリンク切れする

leaflet のマーカー画像がリンク切れ(https://unpkg.com/[email protected]/distmarker-icon-2x.png)してしまっています。
ローカルの環境では発生しなかったので、vercel にデプロイしたときにだけ発生しているようです。

image

SEO対策、OGP対応

  • OGP用画像の導入
  • サイトの説明を書く
  • JSON-LDを書く
  • Astro.jsの導入?

muiへの乗り換え

motivation

  • Materializeだとサイト読み込みの速度が高速化できなさそうなので

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.