Giter VIP home page Giter VIP logo

vue-3-doodle's Introduction

Vue 3 Doodle

  • vite, vitest, vue-tsc, commitizen
  • typescript, less, tailwind
  • Feature-Sliced Design, Application Areas

Feature-Sliced Design (FSD)

  • https://feature-sliced.design/
  • The module should not depend directly on other modules of the same layer or overlying layers
  • Each module must have a declaration of its public API at the top level
  • Orientation to business and user needs

Application Areas

  • It's a part of FSD layer app: @app/areas/*
  • Implemented over vue-router interface
  • Top (external) areas: auth, unauth, maintainance
  • Internal areas: user, dashboard, account, cart, etc, ..., anything
  • Internal area imports into the one of top-external area
  • Each top-external area will be applied to vue router during app's creation
  • Auth area for authorized access to internal areas
  • Unauth area for unauthorized access to internal areas
  • Maintainance area for technical pages like service-unavailable, page-not-found, etc

Every area has base area-frame component looks like:

<template>
  <router-view />
</template>

But you can to change that for a specific area:

<template>
  <Shared.UI.Layout.Section
    class-name="max-w-md"
    height-full
  >
    <div class="my-auto min-h-75">
      <router-view />
    </div>
  </Shared.UI.Layout.Section>
</template>

Tips

  • use ./src/viewport.vue to setup global feature(s) in <script></script> section
  • use ./scr/app/areas/area-frame (area-frame for all areas) to setup global feature(s) in <style></style> section
  • don't use ./src/viewport.vue or ./scr/app/areas/area-frame to setup global feature(s) in <template></template> section, use another area-frame(s) for that

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.