Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/uiPublic

Main VueJS based site for wikibase.cloud

License

NotificationsYou must be signed in to change notification settings

wbstack/ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ℹ️ Issues for this repository are tracked onPhabricator - (Click here to open a new one)

wbstack UI

The code for thehttps://wikibase.cloud/ website (previously wbstack.com).

Development

For a detailed explanation on how things work, check out theguide anddocs for vue-loader.

This app useshttps://cli.vuejs.org.

Docker Environment

Installing dependencies

docker compose run ui npm install

Starting the server

docker compose up -d

Running scripts

docker compose run ui npm run <command>

Bare-metal Environment

Installing dependencies

npm install

Starting the server

npm run serve

Building for production

npm run build

Mocked API

This ui uses Mock Service Worker (https://mswjs.io/) to mock the backend api for test purposes.

To run dev server with mocked api, set env variableAPI_MOCK to a value that evaluates totrue.

This can either be done at runtime using npm, or in.env for docker-compose.

VUE_APP_API_MOCK=1 npm run serve

Currently, logging in using any email and password will behave as if the same user is always logging in.Created wikis by that user will live in local storage (msw-myWikis key)

Backend api mocks live in/src/backend/mocks/default_handlers.js.

NoteFirefox blocks service workers as long as we uselocalhost for local development. The only solution is to usechrom(ium) for now.

Running browser tests

rm -r node_modulesdocker compose run ui npm installdocker compose --profile browser-tests up -ddocker composeexec -it ui npm run test:e2edocker compose --profile browser-tests down

[8]ページ先頭

©2009-2025 Movatter.jp