paginar 0.1.7 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo/slot/slot-chapter1.html +183 -5
- package/dist/index.es.js +760 -475
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +126 -19
- package/package.json +1 -1
- package/src/App.ce.vue +25 -5
- package/src/assets/main.css +5 -0
- package/src/components/FootnotesAside.vue +123 -0
- package/src/components/HeaderSlot/OptionsButton/OptionsButton.vue +7 -1
- package/src/components/HeaderSlot/OptionsButton/OptionsDropdown.vue +16 -1
- package/src/components/HeaderSlot/SummaryButton/SummaryButton.vue +7 -1
- package/src/components/ReferencePopup.vue +6 -1
- package/src/components/icons/Footnote.vue +5 -0
- package/src/components/icons/Notes.vue +5 -0
- package/src/composables/useEstimatePages.js +28 -28
- package/src/composables/useFootnotes.js +25 -2
- package/src/composables/usePagination.js +14 -4
- package/src/composables/useReaderSettings.js +9 -1
- package/src/composables/useReferences.js +6 -14
- package/src/composables/useTextContent.js +30 -5
- package/src/tailwind.css +109 -19
|
@@ -27,11 +27,19 @@
|
|
|
27
27
|
color: var(--theme-primary-extralight, #690000);
|
|
28
28
|
background: var(--theme-secondary, #ffa03c);
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
.reference, .footnote {
|
|
32
|
+
border-bottom: 1px dotted #333;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
.reference:hover, .footnote:hover {
|
|
36
|
+
border-bottom: 2px solid #333;
|
|
37
|
+
}
|
|
30
38
|
</style>
|
|
31
39
|
|
|
32
40
|
<div id="app">
|
|
33
41
|
<paginate-content id="pagination-el" book-title="A Tale of Two Cities"
|
|
34
|
-
css-string="#rootComponent.currentPage-1{background-color:
|
|
42
|
+
css-string="#rootComponent.currentPage-1{background-color: transparent !important; transition: background-color 200ms linear;}"
|
|
35
43
|
>
|
|
36
44
|
<div slot="header">
|
|
37
45
|
<img src="https://sabia.pub/images/logo-mobile-dark.svg" style="height: 40px">
|
|
@@ -42,11 +50,11 @@
|
|
|
42
50
|
</h2>
|
|
43
51
|
<p>
|
|
44
52
|
It was the (LUGONES, 1978) best of times, it was the worst of times, it was the age of
|
|
45
|
-
wisdom, it was the age of foolishness
|
|
53
|
+
wisdom, it was the age of <span class="footnote footnote1">foolishness</span>, it was the epoch of belief, it was
|
|
46
54
|
the epoch of incredulity, it was the season of Light, it was the season
|
|
47
|
-
of Darkness, it was the spring of hope (GAMA, 2019)
|
|
55
|
+
of Darkness, <span class="reference" data-ref="GAMA, 2019">it was <em>the <span>spring</span> of hope</em> (GAMA, 2019)</span>, it was the winter of despair, we
|
|
48
56
|
had everything before us, we had nothing before us, we were all going
|
|
49
|
-
direct to Heaven, we were all going direct the other way—in short,
|
|
57
|
+
direct to Heaven, <span class="footnote footnote2">we were <em>all</em> going</span> direct the other way—in short,
|
|
50
58
|
the period was so far like the present period (GAMA, 2019), that some of its noisiest
|
|
51
59
|
authorities insisted on its being received, for good or for evil, in the
|
|
52
60
|
superlative degree of comparison only.
|
|
@@ -140,7 +148,7 @@
|
|
|
140
148
|
</div>
|
|
141
149
|
<script>
|
|
142
150
|
const settings = {
|
|
143
|
-
baseFont: 'Verdana, sans-serif'
|
|
151
|
+
baseFont: 'Verdana, sans-serif'
|
|
144
152
|
}
|
|
145
153
|
|
|
146
154
|
const content = {
|
|
@@ -163,6 +171,165 @@
|
|
|
163
171
|
"cit": "LUGONES, 1978",
|
|
164
172
|
"ref": "LUGONES, Maria. <strong>Colonialidad y género</strong>. Tábula Rasa, Bogotá, Colômbia, n. 9, p. 73-101, julho-dezembro de 1978."
|
|
165
173
|
}
|
|
174
|
+
],
|
|
175
|
+
|
|
176
|
+
footnotes: [
|
|
177
|
+
{
|
|
178
|
+
"id": "footnote10",
|
|
179
|
+
"text": "Defined as “the activities associated with the governance of a country or area, especially the debate between parties having power”. Retrieved from https://www.lexico.com/definition/ecology."
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"id": "footnote11",
|
|
183
|
+
"text": "Ecology and economy have the same root in the Greek word oikos, meaning “house”. Economy originally meant “household management” and has subsequently come to refer to an economic system and its interactions. Economies are defined, analyzed, and managed at multiple scales, from households to countries to the entire planet, with attention given to economic interactions, stocks, flows, and benefits for people (Bubb et al., 2017, p. 10.)."
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"id": "footnote12",
|
|
187
|
+
"text": "Objects (living or nonliving) that were not created by human hand."
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": "footnote13",
|
|
191
|
+
"text": "This vision is represented by the Gaia hypothesis or Gaia theory, first outlined by James Lovelock and Lynn Margulis in the 1970’s. The authors’ theory supports the argument that the natural systems of the Earth are self-regulating and adequate for the creation and maintenance of life on the planet. "
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"id": "footnote14",
|
|
195
|
+
"text": "Characteristics of the exchanges between humans and the rest of Nature."
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"id": "footnote15",
|
|
199
|
+
"text": "Term that refers to the geopolitical territory of those in the periphery of the economy. It alludes to the countries that are in the south of the globe (those in South America, Africa, and part of Asia) but can also include poorer regions in the northern hemisphere."
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"id": "footnote16",
|
|
203
|
+
"text": "\"Third World\" is a term popularized during the Cold War (1947-1991) to define countries that remained non-aligned with either NATO or the Warsaw Pact. Countries such as Japan, Canada, South Korea, Western European nations, and their respective allies represented the First World, while the post-Soviet Union countries, Cuba, China, and their respective allies represented the Second World."
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"id": "footnote17",
|
|
207
|
+
"text": "To refer to the culture and philosophical tradition that has its historical roots in early European cultures (e.g., Greco-Roman, Germanic), Judaic and Christian values and Enlightenment thinking and that has shaped Anglo-European and North American society (Zylstra et al., 2014)."
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"id": "footnote18",
|
|
211
|
+
"text": "Also referenced by Gibson et al. (2013, p. 170) as resource curse but referring to the case of Norway and oil extraction."
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"id": "footnote19",
|
|
215
|
+
"text": "Extractivism can be described as a geopolitical, economic, and social relations produced throughout history based on the extraction of natural elements to be sold on the Global Market."
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"id": "footnote20",
|
|
219
|
+
"text": "Refers to a kind of agricultural production based on a single crop or livestock species, usually done in large quantities."
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"id": "footnote21",
|
|
223
|
+
"text": "Global Market is the exchange of goods and services? on an international level. "
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"id": "footnote22",
|
|
227
|
+
"text": "An age in which humanity searches for balanced living with the rest of Nature."
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "footnote23",
|
|
231
|
+
"text": "Climate justice refers to the unequally felt consequences of climate change. It has been proven that socially marginalized communities suffer a greater impact on natural disasters and environmental imbalances for their weaker social and economic protection and/or strong dependence on Nature for sustenance. "
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"id": "footnote24",
|
|
235
|
+
"text": "Wicked problems were first defined by design theorists Horst Rittel and Melvin Webber in 1973 as complex social issues that are very difficult to solve because of their complexity. They differ from “tame” problems of mathematics and chess, since either their root or solution are systemic and hard to point out. This term is usually used in planning, policing, and design. "
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"id": "footnote25",
|
|
239
|
+
"text": "Retrieved from https://unfccc.int/about-us/about-the-secretariat."
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"id": "footnote26",
|
|
243
|
+
"text": "The report can be found on the link: https://unstats.un.org/sdgs/report/2020/The-Sustainable-Development-Goals-Report-2020.pdf"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"id": "footnote27",
|
|
247
|
+
"text": "The report can be found on the link: https://www.ipcc.ch/report/ar6/wg1/downloads/report/IPCC_AR6_WGI_Full_Report.pdf."
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"id": "footnote28",
|
|
251
|
+
"text": "The SDGs 2020 report affirms that “the world continues to use natural resources unsustainably”, with a growing carbon footprint from 2010 to 2017 (p. 17) while the IPCC reports that “it is unequivocal that human influence has warmed the atmosphere, ocean and land”. The IPCC provides several analyses to support this affirmation, from the warmth of oceans to greenhouse gas concentration, and so on. "
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"id": "footnote29",
|
|
255
|
+
"text": "Visions on containing deforestation, lowering methane emission and “phasing down” the Party's dependence on coal have been set on the Glasgow Declarations of Forest and Land Use. However, it is known that pursuing such deeds are complex systemic challenges that many times are not taken forward. On this subject, it is worth mentioning the case of Brazil, whose government was one of the countries who signed the Leaders' Declaration on Forests and Land Us on the 12th of November of 2021, committing to reduce drastically deforestation in the country and contain 30% of methane emissions by 2030 (information retrieved from https://ukcop26.org/glasgow-leaders-declaration-on-forests-and-land-use/, accessed on 18.12.2021) . However, Brazilian leadership has not put forward relevant measures that support this objective. As Brazilian’s Government representatives announce the program “Floresta+”, official data from Deter (the country’s platform for measuring the Amazon Forest’s coverage) shows that, over the last two years under their watch, deforestation on the Amazon has grown immensely compared to previous years."
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"id": "footnote30",
|
|
259
|
+
"text": "Reporter Felipe Werneck (2021) from Brazilian platform Observatório do Clima (Climate’s Observatory, in Portuguese) describes in an article the many difficulties for entering COP26 physical and virtual spaces. From long lines, poor Covid-safety measures and instability of the streaming platform, the organization body failed to make the event as “open and inclusive” as they promised. "
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"id": "footnote31",
|
|
263
|
+
"text": "The Paiter-Suruí people tell they have been contacted for the first time in 1969 by Funai (National Indigenous Foundation of Brazil). Today, they are a community of 1,900 people living in 28 communities in the southern part of the Amazon. More on the Paiter-Suruí people on their platform: www.paiter-surui.com."
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"id": "footnote32",
|
|
267
|
+
"text": "Here applies the technology that allows the substitution of coal and oil-based energy, such as solar and wind energy, or the spread of less polluting products such as electric cars or recycled phones."
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"id": "footnote33",
|
|
271
|
+
"text": "The Yanomami are spread in 288 communities (data from 2011) living between the Brazilian and Venezuelan Amazon. They are hunter-farmers whose contact with the western society became more frequent only at the beginning of the 20th century. They are one of the largest Amerindian groups in the Amazon to have mostly held on to their traditional way of life, according to Albert (Kopenawa, 2010). More information on the already mentioned book by Kopenawa and Albert and at the portal https://pib.socioambiental.org/en/Povo:Yanomami (in Portuguese)."
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"id": "footnote34",
|
|
275
|
+
"text": "The Kalungas say they are the biggest community of the kind in Brazil, summing up to 20.000 families today. They have nurtured quilombo culture and their sustainable ways of living, respecting their surroundings throughout the centuries. An article by Rute Pina (2021) on digital magazine Agência Pública provides more information on the importance of this community to maintenance of sustainable knowledge. More on Quilombo Kalunga on their website http://quilombokalunga.org.br/PKS/?page_id=25 (in Portuguese)."
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"id": "footnote35",
|
|
279
|
+
"text": "Wangari Maathai (1940-2011) was the founder of the Green Belt Movement, an environmental organization that fights for climate justice and the environment. Their work is based on empowering communities, especially women, to maintain and improve their community’s environment and ways of living. Maathai wrote about human deep connections to Nature, especially with trees. More on the Green Belt Movement and Maathai on their platform http://www.greenbeltmovement.org/."
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"id": "footnote36",
|
|
283
|
+
"text": "Biocentrism is the philosophy that all living beings have the same importance and have the right to live (Gudynas, 2019, p. 65)."
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"id": "footnote37",
|
|
287
|
+
"text": "The influence of past philosophers on current culture is well proven. Fry (2011) states “Put simply, we all think and act out of philosophical heritage - we do not have to know anything about the Greeks, Kant, Hegel and so on, to be affected by their thinking.” (p. 80). "
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"id": "footnote38",
|
|
291
|
+
"text": "The study of the nature of knowledge and ways of knowing."
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"id": "footnote39",
|
|
295
|
+
"text": "To treat something or someone as an object, synonym of disregard for her/his/its feelings or well-being, or simply disrespect."
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"id": "footnote40",
|
|
299
|
+
"text": "To know more, see Sealey-Huggins (2018)."
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"id": "footnote41",
|
|
303
|
+
"text": "The Transition town network self defines as “a movement that has been growing since 2005. It is about communities stepping up to address the big challenges they face by starting local. By coming together, they are able to crowd-source solutions. They seek to nurture a caring culture, one focused on supporting each other, both as groups or as wider communities.” Retrieved from https://transitionnetwork.org/about-the-movement/what-is-transition/."
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"id": "footnote42",
|
|
307
|
+
"text": "The Right to the City is “as a unified response to gentrification and a call to halt the displacement of low-income people, people of color, marginalized LGBTQ communities, and youths of color from their historic urban neighborhoods. We are a national alliance of racial, economic and environmental justice organizations.” As they state: “. . . a key resource and touchstone is ‘Le droit à la ville’ (The right to the city) a book published in 1968 by French intellectual and philosopher Henri Lefebvre. In the sphere of human rights, this powerful idea was adopted by the World Urban Forum and elaborated into the World Charter of the Right to the City in 2004. Building from this powerful idea, international principles, and forward looking grassroots organizing, the Right To The City Alliance was established in January 2007.” Retrieved from https://righttothecity.org/about/mission-history/."
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"id": "footnote43",
|
|
311
|
+
"text": "To know more about these initiatives, see https://transitionnetwork.org/ and https://righttothecity.org/."
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"id": "footnote44",
|
|
315
|
+
"text": "Refers to the amount of carbon dioxide released into the atmosphere as a result of the activities of an individual, an organization, or a community."
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"id": "footnote45",
|
|
319
|
+
"text": "The movements of Brazilian tribes are constant and strong, though continually overlooked by the Brazilian government. Updated news can be found on platforms such as the one from the Coalition of Indigenous Peoples of Brazil (APIB) (https://apiboficial.org/noticias/), National Indigenous Mobilization (https://mobilizacaonacionalindigena.wordpress.com/) and the Indigenous Media (https://www.midiaindia.com/)."
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"id": "footnote46",
|
|
323
|
+
"text": "As Thomas Berry liked to identify himself, instead of the commonly used \"theologian\" or \"eco theologian\"."
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"id": "footnote1",
|
|
327
|
+
"text": "Foot note text lorem ipsum"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"id": "footnote2",
|
|
331
|
+
"text": "The meaning of ontology is complex, but it generally refers to the philosophical study of the nature of being, becoming or existing. Escobar uses this concept to stress the power of design to create ways of being and doing through its processes and products. "
|
|
332
|
+
}
|
|
166
333
|
]
|
|
167
334
|
}
|
|
168
335
|
|
|
@@ -170,6 +337,17 @@
|
|
|
170
337
|
if (paginationEl) {
|
|
171
338
|
paginationEl.setAttribute("reader-settings", JSON.stringify(settings))
|
|
172
339
|
paginationEl.setAttribute("book-content", JSON.stringify(content))
|
|
340
|
+
|
|
341
|
+
// TESTE DE BLOQUEAR O PAGINADOR
|
|
342
|
+
// setTimeout(() => {
|
|
343
|
+
// console.log('vai chamar')
|
|
344
|
+
// paginationEl.setAttribute("reader-blocked", JSON.stringify(true))
|
|
345
|
+
|
|
346
|
+
// setTimeout(() => {
|
|
347
|
+
// console.log('vai chamar 2')
|
|
348
|
+
// paginationEl.setAttribute("reader-blocked", JSON.stringify(false))
|
|
349
|
+
// }, 2000)
|
|
350
|
+
// }, 2000)
|
|
173
351
|
}
|
|
174
352
|
</script>
|
|
175
353
|
<script type="module" src="/src/main.js"></script>
|