surfinzap / tota Goto Github PK
View Code? Open in Web Editor NEWPublic repository for tota.sk—an NPO in Slovakia cherishing the Rusyn culture.
Home Page: https://tota.sk
Public repository for tota.sk—an NPO in Slovakia cherishing the Rusyn culture.
Home Page: https://tota.sk
Theatre plays have optional elements that won't be filled out in every instance. For example, in 'Jurko a Poklad' there is no 'Autor skladieb' (author_of_songs)
HTML template for the given component (TheatrePlayInfo) is written as interpolated string. I'm not sure what would be the best way to write conditionals for some of the elements so they are not shown at the front-end.
models/TheatrePlayInfo.js
<dl>
<dt>Role 1</dt>
<dd>Actor 1</dd>
<dt>Role 2</dt>
<dd>Actor 2</dd>
</dl>
Kentico Kontent does not have native structure for definition lists (
Example response (Any by ste ne viryly)
change the rendering of table into definition list
Example response (Any by ste ne viryly)
###Structure
→ 'definition_list' is included as a component in a Rich-text
→→ 'definition_term' is included within the Rich-text element of 'definition_list'
→→→ 'definition_term' itself includes 'definition_term' and 'definition_data'
Solution in this case is similar as in #2; with that difference, that we have to resolve Rich-text within Rich-text
Despite the fact it looks not very user-friendly within content, I'd lean more towards Workaround 2.
Kontent JS SDK render an image with following code
<figure>
<img>
</figure>
Override a rendered output with a following template
<figure>
<img>
<figcation>
<figure>
We need to inform a user, that some cookies are being stored. Simple message + link to privacy policy + button to dismiss cookies
This (and other packages) need to be executed at client, so they can store a cookie, that consent has been dismissed, so it isn't shown on the web indefinitely.
When you go through step-by-step guide to config the cookieconsent, you'll end up with an easy solution:
However, I don't know where to place the code in Nuxt app. Let me elaborate
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
The problem is where to place this:
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
<script>
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"theme": "classic",
"content": {
"message": "TBD custom cookies msg to go here.",
"href": "https://tota.sk/podmienky-pouzivania"
}
});
</script>
The problem is that this should be executed at client, not at a server as the templates are usually executed in Nuxt. Here's a very slight hint on what can be done about it in Nuxt Docs
This one can be a bit tricky, because components needs to be resolved at more levels.
https://tota.sk/projekt/any-by-ste-ne-viryly → take a look at 'Internetové obchody'
→ sample response via delivery sdk
Structure
→ 'online_reseller_list' is included as a component in a Rich-text
→→ 1–n 'online_reseller_of_item' is included as linked item in a 'online_reseller_list'
→→→ 1 'online_reseller' is included in 'online_reseller_of_item'
Write a resolver that would render the list of 1–n online resellers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.