const HanyuuOAuth2AppScopeEntry = function(text, warn) { const icon =
; if(warn) icon.classList.add('oauth2-scope-perm-icon-warn'); const element =
{icon}
{text}
; return { get element() { return element; }, }; }; const HanyuuOAuth2AppScopeList = function(scopes) { const permsElem =
; if(Array.isArray(scopes) && scopes.length > 0) { for(const scope of scopes) if(typeof scope === 'string') permsElem.appendChild(new HanyuuOAuth2AppScopeEntry(scope).element); } else permsElem.appendChild(new HanyuuOAuth2AppScopeEntry('A limited amount of things. No scope was specified by the developer.', true).element); const element =
This application will be able to:
{permsElem}
; return { get element() { return element; }, }; };