-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add js files as needed for webpack inmashlib
- Loading branch information
Tim Berners-Lee
committed
Aug 2, 2019
1 parent
f6ad741
commit 37e02a4
Showing
16 changed files
with
8,539 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import { PaneDefinition, SolidSession } from "../types" | ||
import solidUi, { SolidUi } from "solid-ui" | ||
import paneRegistry from "pane-registry" | ||
import { NamedNode, sym } from "rdflib" | ||
import { generateHomepage } from "./homepage" | ||
|
||
let panes: any | ||
let UI: SolidUi | ||
|
||
const nodeMode = (typeof module !== 'undefined') | ||
|
||
if (nodeMode) { | ||
UI = solidUi | ||
panes = paneRegistry | ||
} else { // Add to existing mashlib | ||
panes = (window as any).panes | ||
UI = panes.UI | ||
} | ||
|
||
export const basicPreferencesPane: PaneDefinition = { | ||
icon: UI.icons.iconBase + 'noun_Sliders_341315_000000.svg', | ||
name: 'preferences', | ||
label: (subject) => { | ||
if (subject.uri === subject.site().uri) { | ||
return "Prefs" | ||
} | ||
return null | ||
}, | ||
|
||
// Render the pane | ||
// The subject should be the logged in user. | ||
render: (subject, dom) => { | ||
const container = dom.createElement('div') | ||
|
||
/* Preferences | ||
** | ||
** Things like whether to color text by author webid, to expand image URLs inline, | ||
** expanded inline image height. ... | ||
** In general, preferences can be set per user, per user/app combo, per instance, | ||
** and per instance/user combo. (Seee the long chat pane preferences for an example.) | ||
** Here in the basic preferences, we are only setting per-user defaults. | ||
*/ | ||
|
||
const preferencesFormText = ` | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
@prefix ui: <http://www.w3.org/ns/ui#>. | ||
@prefix : <#>. | ||
:this | ||
<http://purl.org/dc/elements/1.1/title> "Basic preferences" ; | ||
a ui:Form ; | ||
ui:part :powerUser, :developerUser, :newestFirst, :inlineImageHeightEms; | ||
ui:parts ( :powerUser :developerUser :newestFirst :inlineImageHeightEms ). | ||
:powerUser a ui:BooleanField; ui:property solid:powerUser; | ||
ui:label "Color user input by user". | ||
:developerUser a ui:BooleanField; ui:property solid:developerUser; | ||
ui:label "Expand image URLs inline". | ||
:newestFirst a ui:BooleanField; ui:property solid:newestFirst; | ||
ui:label "Newest messages at the top". | ||
:inlineImageHeightEms a ui:IntegerField; ui:property solid:inlineImageHeightEms; | ||
ui:label "Inline image height (lines)". | ||
` | ||
const preferencesForm = kb.sym('https://solid.github.io/solid-panes/dashboard/basicPreferencesForm.ttl#this') | ||
const preferencesFormDoc = preferencesForm.doc() | ||
if (!kb.holds(undefined, undefined, undefined, preferencesFormDoc)) { // If not loaded already | ||
$rdf.parse(preferencesFormText, kb, preferencesFormDoc.uri, 'text/turtle') // Load form directly | ||
} | ||
let preferenceProperties = kb.statementsMatching(null, ns.ui.property, null, preferencesFormDoc).map(st => st.object) | ||
|
||
var context = {noun: 'chat room', me: me, statusArea: statusArea, div: menuArea, dom, kb} | ||
container.appendChild(UI.preferences.renderPreferencesForm(chatChannel, mainClass, preferencesForm, context)) | ||
} | ||
} | ||
// ends |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
<td lang="ab">аҧсуа бызшәа, аҧсшәа</td> | ||
<td lang="aa">Afaraf</td> | ||
<td lang="af">Afrikaans</td> | ||
<td lang="ak">Akan</td> | ||
<td lang="sq">Shqip</td> | ||
<td lang="am">አማርኛ</td> | ||
<td lang="ar" dir="rtl"><div style="float: left;">العربية</div></td> | ||
<td lang="an">aragonés</td> | ||
<td lang="hy">Հայերեն</td> | ||
<td lang="as">অসমীয়া</td> | ||
<td lang="av">авар мацӀ, магӀарул мацӀ</td> | ||
<td lang="ae">avesta</td> | ||
<td lang="ay">aymar aru</td> | ||
<td lang="az">azərbaycan dili</td> | ||
<td lang="bm">bamanankan</td> | ||
<td lang="ba">башҡорт теле</td> | ||
<td lang="eu">euskara, euskera</td> | ||
<td lang="be">беларуская мова</td> | ||
<td lang="bn">বাংলা</td> | ||
<td lang="bh">भोजपुरी</td> | ||
<td lang="bi">Bislama</td> | ||
<td lang="bs">bosanski jezik</td> | ||
<td lang="br">brezhoneg</td> | ||
<td lang="bg">български език</td> | ||
<td lang="my">ဗမာစာ</td> | ||
<td lang="ca">català, valencià</td> | ||
<td lang="ch">Chamoru</td> | ||
<td lang="ce">нохчийн мотт</td> | ||
<td lang="ny">chiCheŵa, chinyanja</td> | ||
<td lang="cv">чӑваш чӗлхи</td> | ||
<td lang="kw">Kernewek</td> | ||
<td lang="co">corsu, lingua corsa</td> | ||
<td lang="cr">ᓀᐦᐃᔭᐍᐏᐣ</td> | ||
<td lang="hr">hrvatski jezik</td> | ||
<td lang="cs">čeština, český jazyk</td> | ||
<td lang="da">dansk</td> | ||
<td lang="dv" dir="rtl"><div style="float: left;">ދިވެހި</div></td> | ||
<td lang="nl">Nederlands, Vlaams</td> | ||
<td lang="dz">རྫོང་ཁ</td> | ||
<td lang="en">English</td> | ||
<td lang="eo">Esperanto</td> | ||
<td lang="et">eesti, eesti keel</td> | ||
<td lang="ee">Eʋegbe</td> | ||
<td lang="fo">føroyskt</td> | ||
<td lang="fj">vosa Vakaviti</td> | ||
<td lang="fi">suomi, suomen kieli</td> | ||
<td lang="fr">français, langue française</td> | ||
<td lang="ff">Fulfulde, Pulaar, Pular</td> | ||
<td lang="gl">Galego</td> | ||
<td lang="ka">ქართული</td> | ||
<td lang="de">Deutsch</td> | ||
<td lang="el">ελληνικά</td> | ||
<td lang="gn">Avañe'ẽ</td> | ||
<td lang="gu">ગુજરાતી</td> | ||
<td lang="ht">Kreyòl ayisyen</td> | ||
<td lang="ha" dir="rtl"><div style="float: left;">(Hausa) هَوُسَ</div></td> | ||
<td lang="he" dir="rtl"><div style="float: left;">עברית</div></td> | ||
<td lang="hz">Otjiherero</td> | ||
<td lang="hi">हिन्दी, हिंदी</td> | ||
<td lang="ho">Hiri Motu</td> | ||
<td lang="hu">magyar</td> | ||
<td lang="ia">Interlingua</td> | ||
<td lang="id">Bahasa Indonesia</td> | ||
<td lang="ga">Gaeilge</td> | ||
<td lang="ig">Asụsụ Igbo</td> | ||
<td lang="ik">Iñupiaq, Iñupiatun</td> | ||
<td lang="io">Ido</td> | ||
<td lang="is">Íslenska</td> | ||
<td lang="it">Italiano</td> | ||
<td lang="iu">ᐃᓄᒃᑎᑐᑦ</td> | ||
<td lang="jv">ꦧꦱꦗꦮ, Basa Jawa</td> | ||
<td lang="kl">kalaallisut, kalaallit oqaasii</td> | ||
<td lang="kn">ಕನ್ನಡ</td> | ||
<td lang="kr">Kanuri</td> | ||
<td lang="kk">қазақ тілі</td> | ||
<td lang="km">ខ្មែរ, ខេមរភាសា, ភាសាខ្មែរ</td> | ||
<td lang="ki">Gĩkũyũ</td> | ||
<td lang="rw">Ikinyarwanda</td> | ||
<td lang="ky">Кыргызча, Кыргыз тили</td> | ||
<td lang="kv">коми кыв</td> | ||
<td lang="kg">Kikongo</td> | ||
<td lang="kj">Kuanyama</td> | ||
<td lang="la">latine, lingua latina</td> | ||
<td lang="lb">Lëtzebuergesch</td> | ||
<td lang="lg">Luganda</td> | ||
<td lang="li">Limburgs</td> | ||
<td lang="ln">Lingála</td> | ||
<td lang="lo">ພາສາລາວ</td> | ||
<td lang="lt">lietuvių kalba</td> | ||
<td lang="lv">latviešu valoda</td> | ||
<td lang="gv">Gaelg, Gailck</td> | ||
<td lang="mk">македонски јазик</td> | ||
<td lang="mg">fiteny malagasy</td> | ||
<td lang="ml">മലയാളം</td> | ||
<td lang="mt">Malti</td> | ||
<td lang="mi">te reo Māori</td> | ||
<td lang="mr">मराठी</td> | ||
<td lang="mh">Kajin M̧ajeļ</td> | ||
<td lang="mn">Монгол хэл</td> | ||
<td lang="na">Dorerin Naoero</td> | ||
<td lang="nv">Diné bizaad</td> | ||
<td lang="nd">isiNdebele</td> | ||
<td lang="ne">नेपाली</td> | ||
<td lang="ng">Owambo</td> | ||
<td lang="nb">Norsk Bokmål</td> | ||
<td lang="nn">Norsk Nynorsk</td> | ||
<td lang="no">Norsk</td> | ||
<td lang="ii">ꆈꌠ꒿ Nuosuhxop</td> | ||
<td lang="nr">isiNdebele</td> | ||
<td lang="oc">occitan, lenga d'òc</td> | ||
<td lang="oj">ᐊᓂᔑᓈᐯᒧᐎᓐ</td> | ||
<td lang="cu">ѩзыкъ словѣньскъ</td> | ||
<td lang="om">Afaan Oromoo</td> | ||
<td lang="or">ଓଡ଼ିଆ</td> | ||
<td lang="os">ирон æвзаг</td> | ||
<td lang="pi">पालि, पाळि</td> | ||
<td lang="fa" dir="rtl"><div style="float: left;">فارسی</div></td> | ||
<td lang="pl">język polski, polszczyzna</td> | ||
<td lang="ps" dir="rtl"><div style="float: left;">پښتو</div></td> | ||
<td lang="pt">Português</td> | ||
<td lang="qu">Runa Simi, Kichwa</td> | ||
<td lang="rm">Rumantsch Grischun</td> | ||
<td lang="rn">Ikirundi</td> | ||
<td lang="ro">Română</td> | ||
<td lang="ru">русский</td> | ||
<td lang="sa">संस्कृतम्</td> | ||
<td lang="sc">sardu</td> | ||
<td lang="se">Davvisámegiella</td> | ||
<td lang="sm">gagana fa'a Samoa</td> | ||
<td lang="sg">yângâ tî sängö</td> | ||
<td lang="sr">српски језик</td> | ||
<td lang="gd">Gàidhlig</td> | ||
<td lang="sn">chiShona</td> | ||
<td lang="si">සිංහල</td> | ||
<td lang="sk">Slovenčina, Slovenský Jazyk</td> | ||
<td lang="sl">Slovenski Jezik, Slovenščina</td> | ||
<td lang="so">Soomaaliga, af Soomaali</td> | ||
<td lang="st">Sesotho</td> | ||
<td lang="es">Español</td> | ||
<td lang="su">Basa Sunda</td> | ||
<td lang="sw">Kiswahili</td> | ||
<td lang="ss">SiSwati</td> | ||
<td lang="sv">Svenska</td> | ||
<td lang="ta">தமிழ்</td> | ||
<td lang="te">తెలుగు</td> | ||
<td lang="th">ไทย</td> | ||
<td lang="ti">ትግርኛ</td> | ||
<td lang="bo">བོད་ཡིག</td> | ||
<td lang="tk">Türkmen, Түркмен</td> | ||
<td lang="tl">Wikang Tagalog</td> | ||
<td lang="tn">Setswana</td> | ||
<td lang="to">Faka Tonga</td> | ||
<td lang="tr">Türkçe</td> | ||
<td lang="ts">Xitsonga</td> | ||
<td lang="tw">Twi</td> | ||
<td lang="ty">Reo Tahiti</td> | ||
<td lang="uk">Українська</td> | ||
<td lang="ur" dir="rtl"><div style="float: left;">اردو</div></td> | ||
<td lang="ve">Tshivenḓa</td> | ||
<td lang="vi">Tiếng Việt</td> | ||
<td lang="vo">Volapük</td> | ||
<td lang="wa">Walon</td> | ||
<td lang="cy">Cymraeg</td> | ||
<td lang="wo">Wollof</td> | ||
<td lang="fy">Frysk</td> | ||
<td lang="xh">isiXhosa</td> | ||
<td lang="yi" dir="rtl"><div style="float: left;">ייִדיש</div></td> | ||
<td lang="yo">Yorùbá</td> | ||
<td lang="za">Saɯ cueŋƅ, Saw cuengh</td> | ||
<td lang="zu">isiZulu</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
Pokestring at -1,-1 | ||
|
||
Pokestring at -1,-1 | ||
|
||
Pokestring at -1,-1 List of ISO 639-1 codes - Wikipedia | ||
Pokestring at -1,-1 | ||
// | ||
document.documentElement.className=document.documentElement.className.replace(/(^|\s)client-nojs(\s|$)/,"$1client-js$2");RLCONF={"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":!1,"wgNamespaceNumber":0,"wgPageName":"List_of_ISO_639-1_codes","wgTitle":"List of ISO 639-1 codes","wgCurRevisionId":908451105,"wgRevisionId":908451105,"wgArticleId":5611796,"wgIsArticle":!0,"wgIsRedirect":!1,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Articles with short description","Articles needing additional references from April 2011","All articles needing additional references","Articles containing Chinese-language text","Articles containing Interlingue-language text","Articles containing Japanese-language text","Articles containing Kashmiri-language text","Articles containing Korean-language text","Articles containing Kurdish-language text","Articles containing Malay-language text","Articles containing Punjabi-language text", | ||
"Articles containing Sindhi-language text","Articles containing Tajik-language text","Articles containing Tatar-language text","Articles containing Uighur-language text","Articles containing Uzbek-language text","ISO 639","Identifiers","Unique identifiers"],"wgBreakFrames":!1,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"List_of_ISO_639-1_codes","wgRelevantArticleId":5611796,"wgRequestId":"XT9ULQpAAEIAAE@B4LIAAADW","wgCSPNonce":!1,"wgIsProbablyEditable":!0,"wgRelevantPageIsProbablyEditable":!0,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgMediaViewerOnClick":!0,"wgMediaViewerEnabledByDefault":!0, | ||
"wgPopupsReferencePreviews":!1,"wgPopupsConflictsWithNavPopupGadget":!1,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":!0,"nearby":!0,"watchlist":!0,"tagline":!1},"wgWMESchemaEditAttemptStepOversample":!1,"wgPoweredByHHVM":!0,"wgULSCurrentAutonym":"English","wgNoticeProject":"wikipedia","wgWikibaseItemId":"Q917906","wgCentralAuthMobileDomain":!1,"wgEditSubmitButtonLabelPublish":!0};RLSTATE={"ext.gadget.charinsert-styles":"ready","ext.globalCssJs.user.styles":"ready","ext.globalCssJs.site.styles":"ready","site.styles":"ready","noscript":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","ext.globalCssJs.site":"ready","user":"ready","user.options":"ready","user.tokens":"loading","ext.cite.styles":"ready","mediawiki.legacy.shared":"ready","mediawiki.legacy.commonPrint":"ready","jquery.tablesorter.styles":"ready","wikibase.client.init":"ready", | ||
"ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","ext.wikimediaBadges":"ready","ext.3d.styles":"ready","mediawiki.skinning.interface":"ready","skins.vector.styles":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","site","mediawiki.page.startup","mediawiki.page.ready","jquery.tablesorter","mediawiki.searchSuggest","ext.gadget.teahouse","ext.gadget.ReferenceTooltips","ext.gadget.watchlist-notice","ext.gadget.DRN-wizard","ext.gadget.charinsert","ext.gadget.refToolbar","ext.gadget.extra-toolbar-buttons","ext.gadget.switcher","ext.centralauth.centralautologin","mmv.head","mmv.bootstrap.autostart","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","ext.quicksurveys.init","ext.centralNotice.geoIP","ext.centralNotice.startUp","skins.vector.js"]; | ||
// | ||
|
||
Pokestring at -1,-1 | ||
// | ||
(RLQ=window.RLQ||[]).push(function(){mw.loader.implement("user.tokens@0tffind",function($,jQuery,require,module){/*@nomin*/mw.user.tokens.set({"editToken":"+\\","patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); | ||
});}); | ||
// | ||
|
||
Pokestring at -1,-1 | ||
|
||
Pokestring at -1,-1 | ||
/**/ | ||
.mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em} | ||
/**/ | ||
|
||
Pokestring at -1,-1 | ||
|
||
|
||
Pokestring at -1,-1 | ||
|
||
Pokestring at -1,-1 List of ISO | ||
639-1 codes | ||
Pokestring at -1,-1 | ||
|
||
Pokestring at -1,-1 From Wikipedia, the free | ||
encyclopedia | ||
Pokestring at -1,-1 Jump to navigation | ||
Pokestring at -1,-1 Jump to search | ||
Pokestring at -1,-1 | ||
|
||
Pokestring at -1,-1 | ||
|
||
Pokestring at -1,-1 Wikimedia list article | ||
Pokestring at -2,-1 | ||
|
||
Pokestring at -2,-1 | ||
|
||
Pokestring at -1,-1 | ||
|
||
column 0 | ||
Pokestring at -1,0 | ||
|
||
column 1 | ||
Pokestring at -1,1 | ||
|
||
Pokestring at -1,1 This article | ||
Pokestring at -1,1 needs additional | ||
citations for | ||
Pokestring at -1,1 verification | ||
Pokestring at -1,1 Please help | ||
Pokestring at -1,1 | ||
improve this article | ||
Pokestring at -1,1 adding | ||
citations to reliable sources | ||
Pokestring at -1,1 Find sources: | ||
Pokestring at -1,1 "List | ||
of ISO 639-1 codes" | ||
Pokestring at -1,1 news | ||
Pokestring at -1,1 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# Language names from ... https://www.omniglot.com/language/names.htm ?? | ||
# https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes | ||
# https://lov.linkeddata.es/dataset/lov/terms?q=Language%20Code | ||
# http://dbpedia.org/ontology/Language | ||
# https://schema.org/knowsLanguage -> Language | ||
|
||
curl https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes > codes.html | ||
tidy -m -asxml codes.html | ||
# sed -e 's/ //g' < codes.html > codes.xml | ||
# python /devel/github.com/linkeddata/swap/tab2n3.py -xhtml < codes.xml > languageCodes.ttl | ||
grep "<td lang" codes.html > codes2.txt |
Oops, something went wrong.