Skip to content

Commit

Permalink
avoid borkt esm.archive.org
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Dec 30, 2024
1 parent 84e3ca7 commit a57f31e
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ will run a local/minimal http file server at http://localhost:5555
```
- run `httpd.js` like above
- load the main page (and any mediatype example items you might want to work on from the list above)
- that will pull down remote `https://esm.archive.org/` (and similar) files that are `import`-ed
- that will pull down remote `https://esm.ext.archive.org/` (and similar) files that are `import`-ed
- soft reload pages during offline dev (ie: dont `hard reload` / clear your browser cache :-)
- requires: `zsh` and `jq` (for preseeding a selection of offline mode items)

Expand Down
19 changes: 10 additions & 9 deletions examples/slot.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@


<script type="module">
import { LitElement, html, css } from 'https://esm.archive.org/lit'
import { Router } from 'https://esm.archive.org/@vaadin/router@^1'
// eslint-disable-next-line no-unused-vars
import { LitElement, html, _css } from 'https://esm.ext.archive.org/[email protected]'
import { Router } from 'https://esm.ext.archive.org/@vaadin/[email protected]'
import { jwplayer, jwbase } from '../js/jwplayer/jwplayer.js'

customElements.define('x-nav', class extends LitElement {
onAfterEnter(location, commands, router) {
// eslint-disable-next-line no-unused-vars
onAfterEnter(_location, _commands, _router) {
// add div to light DOM
const rootTextEl = document.createElement('div')
rootTextEl.setAttribute('id', 'jw6')
Expand All @@ -37,7 +39,7 @@
jwplayer('jw6').setup({
file: 'https://archive.org/download/stairs/stairs.mp4',
width: 'responsive',
base: jwbase
base: jwbase,
})
}

Expand All @@ -54,9 +56,8 @@
})


new Router(document.getElementById('outlet')).setRoutes([
{ path: '(.*)',
component: 'x-nav',
}
])
new Router(document.getElementById('outlet')).setRoutes([{
path: '(.*)',
component: 'x-nav',
}])
</script>
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</head>
<body class="navia responsive">
<style> body, html { margin: 0; font-size: 10px; } </style>
<script type="module" src="https://esm.archive.org/@internetarchive/ia-topnav"></script>
<script type="module" src="https://esm.ext.archive.org/@internetarchive/ia-topnav@1.3.8"></script>
<ia-topnav localLinks="false"></ia-topnav>
<div id="wrap">
<main id="maincontent">
Expand Down
2 changes: 1 addition & 1 deletion js/blank-blank.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, html, css } from 'https://esm.archive.org/lit'
import { LitElement, html, css } from 'https://esm.ext.archive.org/lit@3.2.1'

customElements.define('blank-blank', class BlankBlank extends LitElement {
static get properties() {
Expand Down
4 changes: 2 additions & 2 deletions js/details-page.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, html, css } from 'https://esm.archive.org/lit'
import { LitElement, html, css } from 'https://esm.ext.archive.org/lit@3.2.1'

import './play8/play8.js'
import Player from './player.js'
Expand Down Expand Up @@ -153,7 +153,7 @@ table {
return html`
<script src="https://archive.org/jw/8/jwplayer.js"></script>
<link href="https://esm.archive.org/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="https://esm.ext.archive.org/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<div class="container container-ia"></div>
<div id="theatre-ia-wrap" class="container container-ia width-max">
Expand Down
2 changes: 1 addition & 1 deletion js/item-stat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, html, css } from 'https://esm.archive.org/lit'
import { LitElement, html, css } from 'https://esm.ext.archive.org/lit@3.2.1'

/* eslint-disable-next-line import/prefer-default-export */
customElements.define('item-stat', class ItemStat extends LitElement {
Expand Down
2 changes: 1 addition & 1 deletion js/item-tile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, html, css } from 'https://esm.archive.org/lit'
import { LitElement, html, css } from 'https://esm.ext.archive.org/lit@3.2.1'

import './item-stat.js'

Expand Down
2 changes: 1 addition & 1 deletion js/item-tiles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, html, css } from 'https://esm.archive.org/lit'
import { LitElement, html, css } from 'https://esm.ext.archive.org/lit@3.2.1'

import './item-tile.js'

Expand Down
2 changes: 1 addition & 1 deletion js/play8/play8.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Video/Audio/TV related playback javascript - wrapping and extensions to jwplayer
// For /details/[IDENTIFIER] and /embed/[IDENTIFIER] and TV pages and more

import $ from 'https://esm.archive.org/jquery@^3.6.0'
import $ from 'https://esm.ext.archive.org/jquery@3.7.1'

/* eslint-disable-next-line import/no-named-as-default */
import cgiarg from '../util/cgiarg.js'
Expand Down
2 changes: 1 addition & 1 deletion js/playset/playset.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// xxx share/link as modal?
// xxx cleanup/improve descriptions for description-less items?

import $ from 'https://esm.archive.org/jquery@^3.6.0'
import $ from 'https://esm.ext.archive.org/jquery@3.7.1'

import cgiarg from '../util/cgiarg.js'
import { log } from '../util/log.js'
Expand Down
2 changes: 1 addition & 1 deletion js/router.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Router } from 'https://esm.archive.org/@vaadin/router@^1'
import { Router } from 'https://esm.ext.archive.org/@vaadin/router@1.7.5'

import MDAPI from './mdapi.js'
import { log } from './util/log.js'
Expand Down
2 changes: 1 addition & 1 deletion js/search-page.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, html, css } from 'https://esm.archive.org/lit'
import { LitElement, html, css } from 'https://esm.ext.archive.org/lit@3.2.1'

import './search-results.js'
import cgiarg from './util/cgiarg.js'
Expand Down
2 changes: 1 addition & 1 deletion js/search-results.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, html, css } from 'https://esm.archive.org/lit'
import { LitElement, html, css } from 'https://esm.ext.archive.org/lit@3.2.1'

import './item-tiles.js'

Expand Down
Empty file added tracked.json
Empty file.

0 comments on commit a57f31e

Please sign in to comment.