How to use the omi.Store function in omi

To help you get started, we’ve selected a few omi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Tencent / omi / example / md2site / template / app / src / js / app-store.js View on Github external
import Omi from 'omi';
import config from '../docs/config.js';
import proj_config from '../../project.js';

class AppStore extends Omi.Store {
    constructor(data, isReady) {
        super(isReady)
        /*
         this.data =
         {
             html: '<h1>hello</h1>',
             md: 'components'
             lan: 'cn',
             menus:[
                 {
                     active: true,
                     title: '���ٿ�ʼ',
                     currentIndex: 0,
                     list: [
                         {name: '��װ', md: 'installation', index: 0, active: true},
                         {name: '���', md: 'components'},