From 6d35d33559ac347d9d9713af5832763ec6c476a8 Mon Sep 17 00:00:00 2001 From: David Joy Date: Wed, 10 Feb 2021 13:32:36 -0500 Subject: [PATCH] Adding some comments on unfinished work. --- src/plugin-test/Plugin.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugin-test/Plugin.jsx b/src/plugin-test/Plugin.jsx index 28273b72..c1141f88 100644 --- a/src/plugin-test/Plugin.jsx +++ b/src/plugin-test/Plugin.jsx @@ -6,9 +6,12 @@ import PageLoading from '../generic/PageLoading'; import messages from './messages'; import { loadDynamicScript, loadScriptComponent } from './utils'; -export const COMPONENT = 'component'; -export const SCRIPT = 'script'; -export const IFRAME = 'iframe'; +// These are intended to represent three different plugin types. They're not fully used yet. +// Different plugins of different types would have different loading functionality. +export const COMPONENT = 'component'; // loads JS script then loads react component from its exports +export const SCRIPT = 'script'; // loads JS script +export const IFRAME = 'iframe'; // loads iframe at the URL, rather than loading a JS file. +export const LTI = 'lti'; // loads LTI iframe at the URL, rather than loading a JS file. const useDynamicScript = (url) => { const [ready, setReady] = React.useState(false);