feat(riot-v5): upgrade catalog component + Http and fix global style

This commit is contained in:
Joxit 2021-03-03 00:05:44 +01:00
parent 11692c136e
commit fb80283dd9
No known key found for this signature in database
GPG key ID: F526592B8E012263
11 changed files with 269 additions and 156 deletions

View file

@ -21,6 +21,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</material-navbar>
</header>
<main>
<catalog registry-url="{ state.registryUrl }" name="{ state.name }"
catalog-elements-limit="{ state.catalogElementsLimit }"></catalog>
</main>
<footer>
<material-footer>
@ -41,13 +43,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
} from '../../package.json';
import MaterialNavbar from 'riot-mui/src/material-elements/material-navbar/material-navbar.riot';
import MaterialFooter from 'riot-mui/src/material-elements/material-footer/material-footer.riot';
import Catalog from './catalog/catalog.riot';
import {
stripHttps
} from '../scripts/utils';
export default {
components: {
MaterialNavbar,
MaterialFooter
MaterialFooter,
Catalog
},
onBeforeMount(props) {
this.state.registryUrl = props.registryUrl || (window.location.origin + window.location.pathname.replace(/\/+$/,
''));
this.state.name = props.name || stripHttps(props.registryUrl);
this.state.catalogElementsLimit = props.catalogElementsLimit || 100000;
},
onMounted() {},
version
}
</script>