Przeglądaj źródła

Authorize template. Modal plugin layout.

Harry Hedger 9 lat temu
rodzic
commit
df945e4909

+ 26 - 0
src/plugins/Modal.js

@@ -0,0 +1,26 @@
+export default class Modal {
+  constructor (core, opts) {
+
+  }
+
+  connect (target) {
+  }
+
+  authenticate () {
+  }
+
+  addFile () {
+
+  }
+
+  getDirectory () {
+  }
+
+  run (results) {
+
+  }
+
+  render (files) {
+
+  }
+}

+ 6 - 0
website/src/examples/modal/templates/authorize.js

@@ -0,0 +1,6 @@
+export default (context) => {
+  return `<section class='Modal-authorizeForm'>
+    <h1>Click here to authorize with ${context.provider}</h1>
+    <button class='Modal-authorizeBtn'>Authorize</button>
+  </section>`
+}