@7365admin1/layer-common
| Install | |
|---|---|
npm install @7365admin1/layer-common |
|
| Latest Version: | 4.140.0 |
| License: | MIT |
| Last Updated: | Oct 21, 2026 |
| Links: | npm |
Nuxt Layer Starter
Create Nuxt extendable layer with this GitHub template.
Setup
Make sure to install the dependencies:
pnpm install
Working on your layer
Your layer is at the root of this repository, it is exactly like a regular Nuxt project, except you can publish it on NPM.
The .playground directory should help you on trying your layer during development.
Running pnpm dev will prepare and boot .playground directory, which imports your layer itself.
Distributing your layer
Your Nuxt layer is shaped exactly the same as any other Nuxt project, except you can publish it on NPM.
To do so, you only have to check if files in package.json are valid, then run:
npm publish --access public
Once done, your users will only have to run:
npm install --save your-layer
Then add the dependency to their extends in nuxt.config:
defineNuxtConfig({
extends: 'your-layer'
})
Development Server
Start the development server on http://localhost:3000
pnpm dev
Production
Build the application for production:
pnpm build
Or statically generate it with:
pnpm generate
Locally preview production build:
pnpm preview
Checkout the deployment documentation for more information.
HERO robot rules for the mobile apps
utils/robot-display.ts is the canonical home of the HERO robot display rules.
The React Native apps (iClean365, iMA365, iSecure365) cannot consume this layer
and no separate npm package is published for them, so
scripts/sync-robot-rules.mjs writes a dependency-free copy into each app
(src/shared/robot-rules/robot-rules.ts, GENERATED, with a sha256 header) plus
robot-rules.vectors.json - this repo's own answers for every case. Each app's
test re-hashes the copy and runs the vectors, so a hand edit fails there.
After changing utils/robot-display.ts (or the lift-queue section of
utils/robot-building.ts, or HERO_PALETTE in utils/theme.ts):
node scripts/sync-robot-rules.mjs ../iservice365-hygiene-mobile-app ../iservice365-ma-mobile-app ../isecure365-mobile-app
node scripts/sync-robot-rules.mjs --check ../iservice365-hygiene-mobile-app ../iservice365-ma-mobile-app ../isecure365-mobile-app
and open a PR in each app with the two regenerated files. test/robot-rules-sync.test.mjs
checks the generator here. The script is not part of the published package.
Version History
| Version | Released | License |
|---|---|---|
| 4.140.0 | MIT | |
| 4.139.0 | MIT | |
| 4.138.0 | MIT | |
| 4.137.0 | MIT | |
| 4.136.0 | MIT | |
| 4.135.0 | MIT | |
| 4.134.0 | MIT | |
| 4.133.0 | MIT | |
| 4.132.0 | MIT | |
| 4.131.0 | MIT | |
| 4.130.1 | MIT | |
| 4.130.0 | MIT | |
| 4.129.0 | MIT | |
| 4.128.0 | MIT | |
| 4.127.0 | MIT | |
| 4.126.0 | MIT | |
| 4.125.1 | MIT | |
| 4.125.0 | MIT | |
| 4.124.3 | MIT | |
| 4.124.2 | MIT | |
| 4.124.1 | MIT | |
| 4.124.0 | MIT | |
| 4.123.1 | MIT | |
| 4.123.0 | MIT | |
| 4.122.3 | MIT | |
| 4.122.2 | MIT | |
| 4.122.1 | MIT | |
| 4.122.0 | MIT | |
| 4.121.0 | MIT | |
| 4.120.0 | MIT |
Showing the latest 30 of 363. See every release on npm
Pre-releases (577)
| Version | Released | License |
|---|---|---|
| 4.97.1-staging.586 | MIT | |
| 4.97.1-staging.585 | MIT | |
| 4.97.1-staging.584 | MIT | |
| 4.97.1-staging.583 | MIT | |
| 4.97.1-staging.582 | MIT | |
| 4.97.1-staging.581 | MIT | |
| 4.97.1-staging.580 | MIT | |
| 4.97.1-staging.579 | MIT | |
| 4.97.1-staging.578 | MIT | |
| 4.97.1-staging.577 | MIT | |
| 4.97.1-staging.576 | MIT | |
| 4.97.1-staging.575 | MIT | |
| 4.97.1-staging.574 | MIT | |
| 4.97.1-staging.573 | MIT | |
| 4.97.1-staging.572 | MIT | |
| 4.97.1-staging.571 | MIT | |
| 4.97.1-staging.570 | MIT | |
| 4.97.1-staging.569 | MIT | |
| 4.97.1-staging.568 | MIT | |
| 4.97.1-staging.567 | MIT | |
| 4.97.1-staging.566 | MIT | |
| 4.97.1-staging.565 | MIT | |
| 4.97.1-staging.564 | MIT | |
| 4.97.1-staging.563 | MIT | |
| 4.97.1-staging.562 | MIT | |
| 4.97.1-staging.561 | MIT | |
| 4.97.1-staging.560 | MIT | |
| 4.97.1-staging.559 | MIT | |
| 4.97.1-staging.558 | MIT | |
| 4.97.1-staging.557 | MIT |
Showing the latest 30 of 577. See every release on npm