async init()

in packages/build-plugin-alt/src/entry/universal/plugin.tsx [162:191]


        async init() {
          ctx.skeleton.add({
            name: 'saveSample',
            area: 'topArea',
            type: 'Widget',
            props: {
              align: 'right',
            },
            content: <button
              className='save-sample'
              onClick={saveSchema}
            >保存到本地</button>
          });
          ctx.skeleton.add({
            name: 'resetSchema',
            area: 'topArea',
            type: 'Widget',
            props: {
              align: 'right',
            },
            content: <button
              className='save-sample'
              onClick={resetSchema}
            >重置页面</button>
          });
          ctx.hotkey.bind('command+s', (e) => {
            e.preventDefault();
            saveSchema();
          });
        },