parent
ebb34eb861
commit
9549297875
BIN
.doit.db.db
BIN
.doit.db.db
Binary file not shown.
|
@ -25,3 +25,13 @@
|
|||
.collapsible-link[aria-expanded='true']::before {
|
||||
content: '\f106';
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Customization for nav tabs
|
||||
*
|
||||
*/
|
||||
.nav-pills .nav-link {
|
||||
border-radius: 0;
|
||||
background: rgba(0,0,0,.03);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Detect no next Gancio events and deactivate Next events
|
||||
*/
|
||||
|
||||
function GetNextEventsCount() {
|
||||
const entryComponent = document.querySelector('#nextevents');
|
||||
const shadowRoot = entryComponent.shadowRoot;
|
||||
const app = shadowRoot.querySelector('div');
|
||||
if (app != null) {
|
||||
return app.children.length;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
function ActivePastEvents() {
|
||||
const nexttab = document.getElementById("tab-0");
|
||||
const next = document.getElementById("tab-pane-0");
|
||||
const pasttab = document.getElementById("tab-1");
|
||||
const past = document.getElementById("tab-pane-1");
|
||||
if (nexttab != null && next !== null){
|
||||
next.classList.remove("active");
|
||||
nexttab.classList.remove("active");
|
||||
next.classList.add("fade");
|
||||
}
|
||||
if (pasttab != null && past !== null){
|
||||
past.classList.remove("fade");
|
||||
past.classList.add("active");
|
||||
pasttab.classList.add("active");
|
||||
}
|
||||
}
|
||||
|
||||
function ActivePastEventsIfNotNexts() {
|
||||
if (GetNextEventsCount() == 0) {
|
||||
ActivePastEvents();
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,4 @@
|
|||
/node_modules/
|
||||
.vscode/
|
||||
.DS_Store
|
||||
dist/
|
|
@ -0,0 +1,48 @@
|
|||
# Svelte + Vite
|
||||
|
||||
This template should help get you started developing with Svelte in Vite.
|
||||
|
||||
## Recommended IDE Setup
|
||||
|
||||
[VSCode](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode).
|
||||
|
||||
## Need an official Svelte framework?
|
||||
|
||||
Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also powered by Vite. Deploy anywhere with its serverless-first approach and adapt to various platforms, with out of the box support for TypeScript, SCSS, and Less, and easily-added support for mdsvex, GraphQL, PostCSS, Tailwind CSS, and more.
|
||||
|
||||
## Technical considerations
|
||||
|
||||
**Why use this over SvelteKit?**
|
||||
|
||||
- It brings its own routing solution which might not be preferable for some users.
|
||||
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
|
||||
`vite dev` and `vite build` wouldn't work in a SvelteKit environment, for example.
|
||||
|
||||
This template contains as little as possible to get started with Vite + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.
|
||||
|
||||
Should you later need the extended capabilities and extensibility provided by SvelteKit, the template has been structured similarly to SvelteKit so that it is easy to migrate.
|
||||
|
||||
**Why `global.d.ts` instead of `compilerOptions.types` inside `jsconfig.json` or `tsconfig.json`?**
|
||||
|
||||
Setting `compilerOptions.types` shuts out all other types not explicitly listed in the configuration. Using triple-slash references keeps the default TypeScript setting of accepting type information from the entire workspace, while also adding `svelte` and `vite/client` type information.
|
||||
|
||||
**Why include `.vscode/extensions.json`?**
|
||||
|
||||
Other templates indirectly recommend extensions via the README, but this file allows VS Code to prompt the user to install the recommended extension upon opening the project.
|
||||
|
||||
**Why enable `checkJs` in the JS template?**
|
||||
|
||||
It is likely that most cases of changing variable types in runtime are likely to be accidental, rather than deliberate. This provides advanced typechecking out of the box. Should you like to take advantage of the dynamically-typed nature of JavaScript, it is trivial to change the configuration.
|
||||
|
||||
**Why is HMR not preserving my local component state?**
|
||||
|
||||
HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/rixo/svelte-hmr#svelte-hmr).
|
||||
|
||||
If you have state that's important to retain within a component, consider creating an external store which would not be replaced by HMR.
|
||||
|
||||
```js
|
||||
// store.js
|
||||
// An extremely simple external store
|
||||
import { writable } from 'svelte/store'
|
||||
export default writable(0)
|
||||
```
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Gancio Events Custom Element Demo</title>
|
||||
</head>
|
||||
<body>
|
||||
<gancio-events baseurl='https://demo.gancio.org' title='demo' theme='light' maxlength="3" show_recurrent='true' external_style='gancio.css'></gancio-events>
|
||||
<br/>
|
||||
<gancio-events baseurl='https://gancio.cisti.org' title='La punta' theme='dark' maxlength="3" show_recurrent='true'></gancio-events>
|
||||
<br/>
|
||||
<gancio-events baseurl='https://gancio.cisti.org' title='Past events' theme='light' maxlength="3" past="true"></gancio-events>
|
||||
<br/>
|
||||
<gancio-events baseurl='https://gancio.cisti.org' sidebar='false' show_recurrent='true'></gancio-events>
|
||||
<!-- <gancio-event id=1 baseurl='http://localhost:13120'></gancio-event> -->
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
/**
|
||||
* svelte-preprocess cannot figure out whether you have
|
||||
* a value or a type, so tell TypeScript to enforce using
|
||||
* `import type` instead of `import` for Types.
|
||||
*/
|
||||
"importsNotUsedAsValues": "error",
|
||||
"isolatedModules": true,
|
||||
"resolveJsonModule": true,
|
||||
/**
|
||||
* To have warnings / errors of the Svelte compiler at the
|
||||
* correct position, enable source maps by default.
|
||||
*/
|
||||
"sourceMap": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"baseUrl": ".",
|
||||
/**
|
||||
* Typecheck JS in `.svelte` and `.js` files by default.
|
||||
* Disable this if you'd like to use dynamic types.
|
||||
*/
|
||||
"checkJs": true
|
||||
},
|
||||
/**
|
||||
* Use global.d.ts instead of compilerOptions.types
|
||||
* to avoid limiting type declarations.
|
||||
*/
|
||||
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"]
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"name": "gancio-events",
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"build:lib": "vite build -c=vite.lib.config.js",
|
||||
"serve": "vite preview"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
||||
"svelte": "^5.23.0",
|
||||
"vite": "^6.2.2"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,104 @@
|
|||
<svelte:options customElement="gancio-event"/>
|
||||
|
||||
<script>
|
||||
import { onMount } from 'svelte'
|
||||
import { when } from './helpers'
|
||||
export let baseurl = 'https://demo.gancio.org'
|
||||
export let id
|
||||
|
||||
let mounted = false
|
||||
let event
|
||||
|
||||
function update(id, baseurl) {
|
||||
if (mounted) {
|
||||
fetch(`${baseurl}/api/event/detail/${id}`)
|
||||
.then((res) => res.json())
|
||||
.then((e) => (event = e))
|
||||
}
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
mounted = true
|
||||
update(id, baseurl)
|
||||
})
|
||||
$: update(id, baseurl)
|
||||
|
||||
function thumbnail(event) {
|
||||
return `${baseurl}/media/thumb/${event.media[0].url}`
|
||||
}
|
||||
|
||||
function position(event) {
|
||||
if (event.media[0].focalpoint) {
|
||||
const focalpoint = event.media[0].focalpoint
|
||||
return `${(focalpoint[0] + 1) * 50}% ${(focalpoint[1] + 1) * 50}%`
|
||||
}
|
||||
return 'center center'
|
||||
}
|
||||
</script>
|
||||
|
||||
{#if event}
|
||||
<a
|
||||
href="{baseurl}/event/{event.slug || event.id}"
|
||||
class="card"
|
||||
target="_blank"
|
||||
>
|
||||
{#if event.media?.length}
|
||||
<img
|
||||
src={thumbnail(event)}
|
||||
alt={event.media[0].name}
|
||||
style="object-position: {position(event)}; aspect-ratio=1.7778;"
|
||||
/>
|
||||
{/if}
|
||||
<div class="container">
|
||||
<strong>{event.title}</strong>
|
||||
<div>{when(event)}</div>
|
||||
<div class="place">@{event.place.name}</div>
|
||||
</div>
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
.card {
|
||||
display: block;
|
||||
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS',
|
||||
sans-serif;
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
|
||||
transition: 0.3s;
|
||||
border-radius: 5px; /* 5px rounded corners */
|
||||
max-width: 500px;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
background-color: #1e1e1e;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Add rounded corners to the top left and the top right corner of the image */
|
||||
img {
|
||||
border-radius: 5px 5px 0 0;
|
||||
max-height: 250px;
|
||||
min-height: 160px;
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
object-position: top;
|
||||
}
|
||||
|
||||
.card:hover .container {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
/* On mouse-over, add a deeper shadow */
|
||||
.card:hover {
|
||||
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
/* Add some padding inside the card container */
|
||||
.container {
|
||||
transition: padding-left 0.2s;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.place {
|
||||
font-weight: 600;
|
||||
color: #ff6e40;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,309 @@
|
|||
<svelte:options customElement="gancio-events" />
|
||||
|
||||
<script>
|
||||
import { onMount } from 'svelte'
|
||||
import { when } from './helpers'
|
||||
export let baseurl = ''
|
||||
export let title = ''
|
||||
export let maxlength = false
|
||||
export let past = false
|
||||
export let collection = ''
|
||||
export let tags = ''
|
||||
export let places = ''
|
||||
export let theme = 'light'
|
||||
export let show_recurrent = false
|
||||
export let sidebar = 'true'
|
||||
|
||||
export let external_style = ''
|
||||
export let addYear = past && true
|
||||
|
||||
let mounted = false
|
||||
let events = []
|
||||
|
||||
function update(v) {
|
||||
if (!mounted) return
|
||||
const params = []
|
||||
if (maxlength && !past) {
|
||||
params.push(`max=${maxlength}`)
|
||||
}
|
||||
|
||||
let api = '/api/events'
|
||||
if (collection) {
|
||||
api = `/feed/json/collection/${collection}`
|
||||
} else {
|
||||
if (tags) {
|
||||
params.push(`tags=${tags}`)
|
||||
}
|
||||
|
||||
if (places) {
|
||||
params.push(`places=${places}`)
|
||||
}
|
||||
}
|
||||
params.push(`show_recurrent=${show_recurrent ? 'true' : 'false'}`)
|
||||
if (past) { // API can't reply in reverse order
|
||||
let end = Math.floor(new Date().getTime() / 1000) // Now
|
||||
let start = past === "true" ? 1 : past
|
||||
params.push(`start=${start}`)
|
||||
params.push(`end=${end}`)
|
||||
}
|
||||
|
||||
fetch(`${baseurl}${api}?${params.join('&')}`)
|
||||
.then((res) => res.json())
|
||||
.then((e) => {
|
||||
events = e.events || e
|
||||
if (past) {
|
||||
events = events.reverse()
|
||||
if (maxlength) {
|
||||
events = events.slice(0, maxlength)
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error('Error loading Gancio API -> ', e)
|
||||
})
|
||||
}
|
||||
|
||||
function position(event) {
|
||||
if (event.media && event.media[0].focalpoint) {
|
||||
const focalpoint = event.media[0].focalpoint
|
||||
return `${(focalpoint[0] + 1) * 50}% ${(focalpoint[1] + 1) * 50}%`
|
||||
}
|
||||
return 'center center'
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
mounted = true
|
||||
update()
|
||||
})
|
||||
$: update(
|
||||
maxlength && title && places && tags && theme && show_recurrent && sidebar && baseurl && collection && past && addYear
|
||||
)
|
||||
</script>
|
||||
|
||||
{#if external_style}<link rel="stylesheet" href={external_style} />{/if}
|
||||
{#if events.length}
|
||||
<div
|
||||
id="gancioEvents"
|
||||
class:dark={theme === 'dark'}
|
||||
class:light={theme === 'light'}
|
||||
class:sidebar={sidebar === 'true'}
|
||||
class:nosidebar={sidebar !== 'true'}
|
||||
>
|
||||
{#if title && sidebar === 'true'}
|
||||
<a href={baseurl} target="_blank" id="header">
|
||||
<div class="content">
|
||||
<div class="title">{title}</div>
|
||||
<img id="logo" alt="logo" src="{baseurl}/logo.png" />
|
||||
</div>
|
||||
</a>
|
||||
{/if}
|
||||
{#each events as event}
|
||||
<a
|
||||
href="{baseurl}/event/{event.slug || event.id}"
|
||||
class="event"
|
||||
title={event.title}
|
||||
target="_blank"
|
||||
>
|
||||
{#if sidebar !== 'true'}
|
||||
<div class="img">
|
||||
{#if event.media.length}
|
||||
<img
|
||||
style="object-position: {position(event)}; aspect-ratio=1.7778;"
|
||||
alt={event.media[0].name}
|
||||
src={baseurl + '/media/thumb/' + event.media[0].url}
|
||||
loading="lazy"
|
||||
/>
|
||||
{:else}
|
||||
<img
|
||||
style="aspect-ratio=1.7778;"
|
||||
alt={event.title}
|
||||
src={baseurl + '/fallbackimage.png'}
|
||||
loading="lazy"
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="content">
|
||||
<div class="subtitle">
|
||||
{when(event, addYear)}
|
||||
</div>
|
||||
<div class="title">
|
||||
{event.title}
|
||||
</div>
|
||||
<span class="place"
|
||||
>@{event.place.name}
|
||||
{#if event.place.name!=="online"}<span class="subtitle"> {event.place.address}</span>{/if}</span
|
||||
>
|
||||
{#if event.tags.length}
|
||||
<div class="tags">
|
||||
{#each event.tags as tag}
|
||||
<span class="tag">#{tag}</span>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</a>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
#gancioEvents {
|
||||
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
|
||||
'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
|
||||
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||||
'Noto Color Emoji';
|
||||
overflow-x: hidden;
|
||||
width: 100%;
|
||||
box-sizing: content-box;
|
||||
margin: 0 auto;
|
||||
font-size: 1rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.nosidebar {
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
#header {
|
||||
padding: 1.2rem 1rem;
|
||||
background-color: var(--bg-odd-color);
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
max-width: 500px;
|
||||
box-shadow: rgba(60, 64, 67, 0.4) 0px 1px 2px 0px,
|
||||
rgba(60, 64, 67, 0.25) 0px 1px 3px 1px;
|
||||
border-radius: 5px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.event .img {
|
||||
width: 100%;
|
||||
max-width: 450px;
|
||||
max-height: 250px;
|
||||
aspect-ratio: 1.7778;
|
||||
flex: 1 0 auto;
|
||||
/* height: 100%; */
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
.event {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.event .img {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
.event img {
|
||||
object-fit: cover;
|
||||
border-radius: 15px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
|
||||
rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
|
||||
}
|
||||
|
||||
.nosidebar .event {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.nosidebar .content {
|
||||
margin-left: 1rem;
|
||||
margin-top: 5px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.tags {
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
#logo {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: var(--text-color);
|
||||
display: flex;
|
||||
padding: 8px 20px;
|
||||
margin: 0;
|
||||
line-height: 1.275rem;
|
||||
font-weight: 400;
|
||||
font-size: 0.875rem;
|
||||
position: relative;
|
||||
transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1),
|
||||
padding 0.3s;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
a:hover .title,
|
||||
a:focus .title,
|
||||
a:active .title {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--bg-odd-color: #161616;
|
||||
--bg-even-color: #222;
|
||||
--bg-hover-color: #333;
|
||||
--text-color: white;
|
||||
--title-color: white;
|
||||
--line-color: rgba(120, 120, 120, 0.2);
|
||||
}
|
||||
|
||||
.light {
|
||||
--bg-odd-color: #f5f5f5;
|
||||
--bg-even-color: #fafafa;
|
||||
--bg-hover-color: #eee;
|
||||
--text-color: #222;
|
||||
--title-color: black;
|
||||
--line-color: rgba(220, 220, 220, 0.9);
|
||||
}
|
||||
.sidebar a {
|
||||
background-color: var(--bg-even-color);
|
||||
border-bottom: 1px solid var(--line-color);
|
||||
}
|
||||
|
||||
.sidebar a:hover,
|
||||
.sidebar a:focus,
|
||||
.sidebar a:active {
|
||||
background-color: var(--bg-hover-color);
|
||||
padding-left: 15px;
|
||||
padding-right: 25px;
|
||||
}
|
||||
|
||||
.place {
|
||||
font-weight: 400;
|
||||
font-size: 1.2rem;
|
||||
line-height: 1.4rem;
|
||||
color: orangered;
|
||||
}
|
||||
|
||||
.title {
|
||||
color: var(--title-color);
|
||||
font-weight: bold;
|
||||
font-size: 1.3rem;
|
||||
line-height: 1.1em;
|
||||
}
|
||||
|
||||
.nosidebar .title {
|
||||
font-size: 1.9em;
|
||||
line-height: 1.1em;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 1rem;
|
||||
line-height: 1.1em;
|
||||
color: var(--title-color);
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.tag {
|
||||
margin-right: 10px;
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,27 @@
|
|||
function formatDatetime(timestamp, type = 'long', addTimezone = false, addYear = false ) {
|
||||
const options =
|
||||
type === 'long'
|
||||
? {
|
||||
weekday: 'long',
|
||||
month: 'long',
|
||||
day: 'numeric',
|
||||
...(addYear && { year: 'numeric' }),
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
...(addTimezone && { timeZoneName: 'short' })
|
||||
}
|
||||
: { hour: '2-digit', minute: '2-digit' }
|
||||
return new Date(timestamp * 1000).toLocaleString(undefined, options)
|
||||
}
|
||||
|
||||
|
||||
export function when(event, addYear = false) {
|
||||
const addTimezone = event.ap_id || event.place.name === 'online'
|
||||
if (event.multidate) {
|
||||
return formatDatetime(event.start_datetime, 'long', addTimezone, addYear) + ' - ' +
|
||||
formatDatetime(event.end_datetime, 'long', addTimezone, addYear)
|
||||
}
|
||||
return (
|
||||
formatDatetime(event.start_datetime, 'long', addTimezone, addYear)
|
||||
)
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
export * from './GancioEvents.svelte'
|
||||
export * from './GancioEvent.svelte'
|
|
@ -0,0 +1,11 @@
|
|||
import { defineConfig } from 'vite'
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
svelte({
|
||||
compilerOptions: { customElement: true }
|
||||
})
|
||||
]
|
||||
})
|
|
@ -0,0 +1,13 @@
|
|||
import { defineConfig } from 'vite'
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
build: {
|
||||
lib: {
|
||||
entry: './src/main.js',
|
||||
name: 'GancioEvents'
|
||||
}
|
||||
},
|
||||
plugins: [svelte({compilerOptions: { customElement: true }})]
|
||||
})
|
|
@ -0,0 +1,301 @@
|
|||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@esbuild/linux-x64@0.25.9":
|
||||
version "0.25.9"
|
||||
resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.9.tgz"
|
||||
integrity sha512-iSwByxzRe48YVkmpbgoxVzn76BXjlYFXC7NvLYq+b+kDjyyk30J0JY47DIn8z1MO3K0oSl9fZoRmZPQI4Hklzg==
|
||||
|
||||
"@jridgewell/gen-mapping@^0.3.5":
|
||||
version "0.3.13"
|
||||
resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz"
|
||||
integrity sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==
|
||||
dependencies:
|
||||
"@jridgewell/sourcemap-codec" "^1.5.0"
|
||||
"@jridgewell/trace-mapping" "^0.3.24"
|
||||
|
||||
"@jridgewell/remapping@^2.3.4":
|
||||
version "2.3.5"
|
||||
resolved "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz"
|
||||
integrity sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==
|
||||
dependencies:
|
||||
"@jridgewell/gen-mapping" "^0.3.5"
|
||||
"@jridgewell/trace-mapping" "^0.3.24"
|
||||
|
||||
"@jridgewell/resolve-uri@^3.1.0":
|
||||
version "3.1.2"
|
||||
resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz"
|
||||
integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==
|
||||
|
||||
"@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.4.15", "@jridgewell/sourcemap-codec@^1.5.0", "@jridgewell/sourcemap-codec@^1.5.5":
|
||||
version "1.5.5"
|
||||
resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz"
|
||||
integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==
|
||||
|
||||
"@jridgewell/trace-mapping@^0.3.24":
|
||||
version "0.3.30"
|
||||
resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz"
|
||||
integrity sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==
|
||||
dependencies:
|
||||
"@jridgewell/resolve-uri" "^3.1.0"
|
||||
"@jridgewell/sourcemap-codec" "^1.4.14"
|
||||
|
||||
"@rollup/rollup-linux-x64-gnu@4.47.1":
|
||||
version "4.47.1"
|
||||
resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.47.1.tgz"
|
||||
integrity sha512-uTLEakjxOTElfeZIGWkC34u2auLHB1AYS6wBjPGI00bWdxdLcCzK5awjs25YXpqB9lS8S0vbO0t9ZcBeNibA7g==
|
||||
|
||||
"@rollup/rollup-linux-x64-musl@4.47.1":
|
||||
version "4.47.1"
|
||||
resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.47.1.tgz"
|
||||
integrity sha512-Ft+d/9DXs30BK7CHCTX11FtQGHUdpNDLJW0HHLign4lgMgBcPFN3NkdIXhC5r9iwsMwYreBBc4Rho5ieOmKNVQ==
|
||||
|
||||
"@sveltejs/acorn-typescript@^1.0.5":
|
||||
version "1.0.5"
|
||||
resolved "https://registry.npmjs.org/@sveltejs/acorn-typescript/-/acorn-typescript-1.0.5.tgz"
|
||||
integrity sha512-IwQk4yfwLdibDlrXVE04jTZYlLnwsTT2PIOQQGNLWfjavGifnk1JD1LcZjZaBTRcxZu2FfPfNLOE04DSu9lqtQ==
|
||||
|
||||
"@sveltejs/vite-plugin-svelte-inspector@^4.0.1":
|
||||
version "4.0.1"
|
||||
resolved "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-4.0.1.tgz"
|
||||
integrity sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw==
|
||||
dependencies:
|
||||
debug "^4.3.7"
|
||||
|
||||
"@sveltejs/vite-plugin-svelte@^5.0.0", "@sveltejs/vite-plugin-svelte@^5.0.3":
|
||||
version "5.1.1"
|
||||
resolved "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-5.1.1.tgz"
|
||||
integrity sha512-Y1Cs7hhTc+a5E9Va/xwKlAJoariQyHY+5zBgCZg4PFWNYQ1nMN9sjK1zhw1gK69DuqVP++sht/1GZg1aRwmAXQ==
|
||||
dependencies:
|
||||
"@sveltejs/vite-plugin-svelte-inspector" "^4.0.1"
|
||||
debug "^4.4.1"
|
||||
deepmerge "^4.3.1"
|
||||
kleur "^4.1.5"
|
||||
magic-string "^0.30.17"
|
||||
vitefu "^1.0.6"
|
||||
|
||||
"@types/estree@^1.0.5", "@types/estree@^1.0.6", "@types/estree@1.0.8":
|
||||
version "1.0.8"
|
||||
resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz"
|
||||
integrity sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==
|
||||
|
||||
acorn@^8.12.1, acorn@^8.9.0:
|
||||
version "8.15.0"
|
||||
resolved "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz"
|
||||
integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==
|
||||
|
||||
aria-query@^5.3.1:
|
||||
version "5.3.2"
|
||||
resolved "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz"
|
||||
integrity sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==
|
||||
|
||||
axobject-query@^4.1.0:
|
||||
version "4.1.0"
|
||||
resolved "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz"
|
||||
integrity sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==
|
||||
|
||||
clsx@^2.1.1:
|
||||
version "2.1.1"
|
||||
resolved "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz"
|
||||
integrity sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==
|
||||
|
||||
debug@^4.3.7, debug@^4.4.1:
|
||||
version "4.4.1"
|
||||
resolved "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz"
|
||||
integrity sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==
|
||||
dependencies:
|
||||
ms "^2.1.3"
|
||||
|
||||
deepmerge@^4.3.1:
|
||||
version "4.3.1"
|
||||
resolved "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz"
|
||||
integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==
|
||||
|
||||
esbuild@^0.25.0:
|
||||
version "0.25.9"
|
||||
resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.25.9.tgz"
|
||||
integrity sha512-CRbODhYyQx3qp7ZEwzxOk4JBqmD/seJrzPa/cGjY1VtIn5E09Oi9/dB4JwctnfZ8Q8iT7rioVv5k/FNT/uf54g==
|
||||
optionalDependencies:
|
||||
"@esbuild/aix-ppc64" "0.25.9"
|
||||
"@esbuild/android-arm" "0.25.9"
|
||||
"@esbuild/android-arm64" "0.25.9"
|
||||
"@esbuild/android-x64" "0.25.9"
|
||||
"@esbuild/darwin-arm64" "0.25.9"
|
||||
"@esbuild/darwin-x64" "0.25.9"
|
||||
"@esbuild/freebsd-arm64" "0.25.9"
|
||||
"@esbuild/freebsd-x64" "0.25.9"
|
||||
"@esbuild/linux-arm" "0.25.9"
|
||||
"@esbuild/linux-arm64" "0.25.9"
|
||||
"@esbuild/linux-ia32" "0.25.9"
|
||||
"@esbuild/linux-loong64" "0.25.9"
|
||||
"@esbuild/linux-mips64el" "0.25.9"
|
||||
"@esbuild/linux-ppc64" "0.25.9"
|
||||
"@esbuild/linux-riscv64" "0.25.9"
|
||||
"@esbuild/linux-s390x" "0.25.9"
|
||||
"@esbuild/linux-x64" "0.25.9"
|
||||
"@esbuild/netbsd-arm64" "0.25.9"
|
||||
"@esbuild/netbsd-x64" "0.25.9"
|
||||
"@esbuild/openbsd-arm64" "0.25.9"
|
||||
"@esbuild/openbsd-x64" "0.25.9"
|
||||
"@esbuild/openharmony-arm64" "0.25.9"
|
||||
"@esbuild/sunos-x64" "0.25.9"
|
||||
"@esbuild/win32-arm64" "0.25.9"
|
||||
"@esbuild/win32-ia32" "0.25.9"
|
||||
"@esbuild/win32-x64" "0.25.9"
|
||||
|
||||
esm-env@^1.2.1:
|
||||
version "1.2.2"
|
||||
resolved "https://registry.npmjs.org/esm-env/-/esm-env-1.2.2.tgz"
|
||||
integrity sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==
|
||||
|
||||
esrap@^2.1.0:
|
||||
version "2.1.0"
|
||||
resolved "https://registry.npmjs.org/esrap/-/esrap-2.1.0.tgz"
|
||||
integrity sha512-yzmPNpl7TBbMRC5Lj2JlJZNPml0tzqoqP5B1JXycNUwtqma9AKCO0M2wHrdgsHcy1WRW7S9rJknAMtByg3usgA==
|
||||
dependencies:
|
||||
"@jridgewell/sourcemap-codec" "^1.4.15"
|
||||
|
||||
fdir@^6.4.4:
|
||||
version "6.5.0"
|
||||
resolved "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz"
|
||||
integrity sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==
|
||||
|
||||
is-reference@^3.0.3:
|
||||
version "3.0.3"
|
||||
resolved "https://registry.npmjs.org/is-reference/-/is-reference-3.0.3.tgz"
|
||||
integrity sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==
|
||||
dependencies:
|
||||
"@types/estree" "^1.0.6"
|
||||
|
||||
kleur@^4.1.5:
|
||||
version "4.1.5"
|
||||
resolved "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz"
|
||||
integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==
|
||||
|
||||
locate-character@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz"
|
||||
integrity sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==
|
||||
|
||||
magic-string@^0.30.11, magic-string@^0.30.17:
|
||||
version "0.30.18"
|
||||
resolved "https://registry.npmjs.org/magic-string/-/magic-string-0.30.18.tgz"
|
||||
integrity sha512-yi8swmWbO17qHhwIBNeeZxTceJMeBvWJaId6dyvTSOwTipqeHhMhOrz6513r1sOKnpvQ7zkhlG8tPrpilwTxHQ==
|
||||
dependencies:
|
||||
"@jridgewell/sourcemap-codec" "^1.5.5"
|
||||
|
||||
ms@^2.1.3:
|
||||
version "2.1.3"
|
||||
resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz"
|
||||
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
|
||||
|
||||
nanoid@^3.3.11:
|
||||
version "3.3.11"
|
||||
resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz"
|
||||
integrity sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==
|
||||
|
||||
picocolors@^1.1.1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz"
|
||||
integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==
|
||||
|
||||
"picomatch@^3 || ^4", picomatch@^4.0.2:
|
||||
version "4.0.3"
|
||||
resolved "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz"
|
||||
integrity sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==
|
||||
|
||||
postcss@^8.5.3:
|
||||
version "8.5.6"
|
||||
resolved "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz"
|
||||
integrity sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==
|
||||
dependencies:
|
||||
nanoid "^3.3.11"
|
||||
picocolors "^1.1.1"
|
||||
source-map-js "^1.2.1"
|
||||
|
||||
rollup@^4.34.9:
|
||||
version "4.47.1"
|
||||
resolved "https://registry.npmjs.org/rollup/-/rollup-4.47.1.tgz"
|
||||
integrity sha512-iasGAQoZ5dWDzULEUX3jiW0oB1qyFOepSyDyoU6S/OhVlDIwj5knI5QBa5RRQ0sK7OE0v+8VIi2JuV+G+3tfNg==
|
||||
dependencies:
|
||||
"@types/estree" "1.0.8"
|
||||
optionalDependencies:
|
||||
"@rollup/rollup-android-arm-eabi" "4.47.1"
|
||||
"@rollup/rollup-android-arm64" "4.47.1"
|
||||
"@rollup/rollup-darwin-arm64" "4.47.1"
|
||||
"@rollup/rollup-darwin-x64" "4.47.1"
|
||||
"@rollup/rollup-freebsd-arm64" "4.47.1"
|
||||
"@rollup/rollup-freebsd-x64" "4.47.1"
|
||||
"@rollup/rollup-linux-arm-gnueabihf" "4.47.1"
|
||||
"@rollup/rollup-linux-arm-musleabihf" "4.47.1"
|
||||
"@rollup/rollup-linux-arm64-gnu" "4.47.1"
|
||||
"@rollup/rollup-linux-arm64-musl" "4.47.1"
|
||||
"@rollup/rollup-linux-loongarch64-gnu" "4.47.1"
|
||||
"@rollup/rollup-linux-ppc64-gnu" "4.47.1"
|
||||
"@rollup/rollup-linux-riscv64-gnu" "4.47.1"
|
||||
"@rollup/rollup-linux-riscv64-musl" "4.47.1"
|
||||
"@rollup/rollup-linux-s390x-gnu" "4.47.1"
|
||||
"@rollup/rollup-linux-x64-gnu" "4.47.1"
|
||||
"@rollup/rollup-linux-x64-musl" "4.47.1"
|
||||
"@rollup/rollup-win32-arm64-msvc" "4.47.1"
|
||||
"@rollup/rollup-win32-ia32-msvc" "4.47.1"
|
||||
"@rollup/rollup-win32-x64-msvc" "4.47.1"
|
||||
fsevents "~2.3.2"
|
||||
|
||||
source-map-js@^1.2.1:
|
||||
version "1.2.1"
|
||||
resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz"
|
||||
integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==
|
||||
|
||||
svelte@^5.0.0, svelte@^5.23.0:
|
||||
version "5.38.2"
|
||||
resolved "https://registry.npmjs.org/svelte/-/svelte-5.38.2.tgz"
|
||||
integrity sha512-iAcp/oFAWauVSGILdD67n7DiwgLHXZzWZIdzl7araRxu72jUr7PFAo2Iie7gXt0IbnlYvhxCb9GT3ZJUquO3PA==
|
||||
dependencies:
|
||||
"@jridgewell/remapping" "^2.3.4"
|
||||
"@jridgewell/sourcemap-codec" "^1.5.0"
|
||||
"@sveltejs/acorn-typescript" "^1.0.5"
|
||||
"@types/estree" "^1.0.5"
|
||||
acorn "^8.12.1"
|
||||
aria-query "^5.3.1"
|
||||
axobject-query "^4.1.0"
|
||||
clsx "^2.1.1"
|
||||
esm-env "^1.2.1"
|
||||
esrap "^2.1.0"
|
||||
is-reference "^3.0.3"
|
||||
locate-character "^3.0.0"
|
||||
magic-string "^0.30.11"
|
||||
zimmerframe "^1.1.2"
|
||||
|
||||
tinyglobby@^0.2.13:
|
||||
version "0.2.14"
|
||||
resolved "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz"
|
||||
integrity sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==
|
||||
dependencies:
|
||||
fdir "^6.4.4"
|
||||
picomatch "^4.0.2"
|
||||
|
||||
"vite@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0-beta.0", vite@^6.0.0, vite@^6.2.2:
|
||||
version "6.3.5"
|
||||
resolved "https://registry.npmjs.org/vite/-/vite-6.3.5.tgz"
|
||||
integrity sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==
|
||||
dependencies:
|
||||
esbuild "^0.25.0"
|
||||
fdir "^6.4.4"
|
||||
picomatch "^4.0.2"
|
||||
postcss "^8.5.3"
|
||||
rollup "^4.34.9"
|
||||
tinyglobby "^0.2.13"
|
||||
optionalDependencies:
|
||||
fsevents "~2.3.3"
|
||||
|
||||
vitefu@^1.0.6:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.npmjs.org/vitefu/-/vitefu-1.1.1.tgz"
|
||||
integrity sha512-B/Fegf3i8zh0yFbpzZ21amWzHmuNlLlmJT6n7bu5e+pCHUKQIfXSYokrqOBGEMMe9UG2sostKQF9mml/vYaWJQ==
|
||||
|
||||
zimmerframe@^1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.npmjs.org/zimmerframe/-/zimmerframe-1.1.2.tgz"
|
||||
integrity sha512-rAbqEGa8ovJy4pyBxZM70hg4pE6gDgaQ0Sl9M3enG3I0d6H4XSAM3GeNGLKnsBpuijUow064sf7ww1nutC5/3w==
|
|
@ -7,6 +7,19 @@
|
|||
.. link:
|
||||
.. description: Eventos que organiza o participa EDUCATIC
|
||||
.. type: text
|
||||
.. hidemastodon: True
|
||||
-->
|
||||
|
||||
{{% tabpannel active='1' %}}
|
||||
Próximos
|
||||
<gancio-events baseurl='https://eventos.txs.es' title='Próximos eventos' theme='light' sidebar='false' id='nextevents'></gancio-events><p>No existen mas próximos eventos programados actualmente.</p>
|
||||
|
||||
|
||||
Pasados
|
||||
<gancio-events baseurl='https://eventos.txs.es' title='Eventos pasados' theme='light' sidebar='false' past='true'></gancio-events>
|
||||
{{% /tabpannel %}}
|
||||
|
||||
|
||||
<script src='/assets/js/gancio-events.es.js'></script>
|
||||
|
||||
{{% gancio-events-detect %}}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
${pagekind}
|
|
@ -0,0 +1,6 @@
|
|||
<%doc>
|
||||
Load gancio-events-detect.js and call ActivePastEventsIfNotNexts() when page is load
|
||||
</%doc>
|
||||
|
||||
<% site.template_hooks['body_end'].append('<script src="/assets/js/gancio-events-detect.js"></script>') %>
|
||||
<% site.template_hooks['body_end'].append('<script> $(document).ready(function(){ ActivePastEventsIfNotNexts(); });</script>') %>
|
|
@ -0,0 +1,59 @@
|
|||
<%doc>
|
||||
Return a bootstrap4 Tab Pannel
|
||||
|
||||
Template engine: Mako
|
||||
|
||||
Usage:
|
||||
|
||||
{{% tabpannel [active=<active>] %}}
|
||||
<Title Tab 1>
|
||||
<Content Tab 1>
|
||||
|
||||
|
||||
<Title Tab 2>
|
||||
<Content Tab 2>
|
||||
|
||||
|
||||
...
|
||||
{{% /tabpannel %}}
|
||||
|
||||
separate each tab from the next with two blank lines. Where <active> is the number of the initialy active tab, 1 to number of tabs. Default, any tab active.
|
||||
|
||||
Example:
|
||||
</%doc>
|
||||
|
||||
<% tabs = data.split('\n\n\n') %>
|
||||
## <% lines = [item for item in lines if item != ''] %>
|
||||
<% ntabs = len(tabs) %>
|
||||
% if active is UNDEFINED:
|
||||
<% act = None %>
|
||||
% else:
|
||||
<% act = int(active) %>
|
||||
% endif
|
||||
|
||||
<ul class="nav nav-pills nav-fill">
|
||||
% for t in range(0, ntabs):
|
||||
<li class="nav-item">
|
||||
% if t+1 == act:
|
||||
<a class="nav-link active" data-toggle="tab" href="#tab-pane-${t}" id="tab-${t}">
|
||||
% else:
|
||||
<a class="nav-link" data-toggle="tab" href="#tab-pane-${t}" id="tab-${t}">
|
||||
% endif
|
||||
${tabs[t].lstrip('\n').split('\n', 1)[0]}
|
||||
</a>
|
||||
</li>
|
||||
% endfor
|
||||
</ul>
|
||||
|
||||
<!-- Tab panes -->
|
||||
<div class="tab-content">
|
||||
% for t in range(0, ntabs):
|
||||
% if t+1 == act:
|
||||
<div id="tab-pane-${t}" class="container-xl tab-pane active"><br>
|
||||
% else:
|
||||
<div id="tab-pane-${t}" class="container-xl tab-pane fade"><br>
|
||||
% endif
|
||||
${tabs[t].lstrip('\n').split('\n', 1)[1]}
|
||||
</div>
|
||||
% endfor
|
||||
</div>
|
|
@ -3,7 +3,7 @@
|
|||
<%namespace name="mastodon" file="mastodon.tmpl" import="*" />
|
||||
${set_locale(lang)}
|
||||
${base.html_headstart()}
|
||||
%if theme_config.get('mastodon_timeline_init'):
|
||||
%if theme_config.get('mastodon_timeline_init') and not(post and post.meta('hidemastodon')):
|
||||
${mastodon.extra_head()}
|
||||
%endif
|
||||
<%block name="extra_head">
|
||||
|
@ -82,7 +82,7 @@ bg-dark
|
|||
<!--End of body content-->
|
||||
</div>
|
||||
|
||||
%if theme_config.get('mastodon_timeline_init'):
|
||||
%if theme_config.get('mastodon_timeline_init') and not(post and post.meta('hidemastodon')):
|
||||
<div class="col-lg-5 col-xl-4">
|
||||
<div class="container-xl">
|
||||
<img src="/assets/img/mastodon.svg" width="35" height="35" alt="Mastodon" class="d-inline-block align-top">
|
||||
|
@ -92,13 +92,12 @@ bg-dark
|
|||
<!--End of Mastodon content-->
|
||||
</div>
|
||||
%endif
|
||||
|
||||
<footer id="footer">
|
||||
${content_footer}
|
||||
${template_hooks['page_footer']()}
|
||||
<%block name="extra_footer"></%block>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
<footer id="footer">
|
||||
${content_footer}
|
||||
${template_hooks['page_footer']()}
|
||||
<%block name="extra_footer"></%block>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -111,7 +110,7 @@ ${base.late_load_js()}
|
|||
</script>
|
||||
<!-- end fancy dates -->
|
||||
%endif
|
||||
%if theme_config.get('mastodon_timeline_init'):
|
||||
%if theme_config.get('mastodon_timeline_init') and not(post and post.meta('hidemastodon')):
|
||||
${mastodon.extra_js()}
|
||||
%endif
|
||||
<%block name="extra_js"></%block>
|
||||
|
|
Loading…
Reference in New Issue