@eotl/core

0.2.4 • Public • Published

Core

status-badge

Various data, structures, and utils to use across EOTL applications.

⚠️ Warning this repo is not ready for production and is highly subject to change

Data

  • GeoJSON data of Berlin and sub-districts

JS

A JavaScript package that can be installed in your application.

Vue Components

import { ... } from '@eotl/core/components

Vue Mixins

import { ... } from '@eotl/core/mixins

Vue i18n translation strings

import { ... } from '@eotl/core/locales

Generic utils

import { ... } from '@eotl/core/enums

Example

To include Vue.js libraries you must first include and init() the package with the following:

import { useEotlCore } from '@eotl/core/store'

// init EOTL core
const eotlStore = useEotlCore()

eotlStore.init({
    // mapboxToken: '',
    url_sextant: import.meta.env.VITE_SEXTANT_URL,
    url_api: import.meta.env.VITE_SEXTANT_API_URL,
})

This package will only work with passing in a pinia store (for now), thus working only in a Vue.js app and breaking the idea of using it as a standalone.

Fetching Data

Within the eotlStore are HTTP fetch() helpers which handle various response states.

async fetchGet(endpoint, queryString = '') { ... }
async fetchPost(endpoint, record) { ... }
async fetchPatch(endpoint, record) { ... }
async fetchDelete(endpoint) { ... }

To-Do

  • [ ] Logistics UI widget for calculating size, weight, and price estimation of items to be transported

Vue basic setups for testing

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

Customize configuration

See Vite Configuration Reference.

Developing

yarn install

Compile and Hot-Reload for Development

yarn dev

For local dev and importing it in another package use

yarn build --watch

Compile and Minify for Production

yarn build

Lint with ESLint

yarn lint

Go

No shared Golang code at present... but will be soon.

Package Sidebar

Install

npm i @eotl/core

Weekly Downloads

31

Version

0.2.4

License

ISC

Unpacked Size

5.33 MB

Total Files

32

Last publish

Collaborators

  • basebuilder
  • mitschabaude
  • doublemalt