Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpestov committed Aug 21, 2024
2 parents 7743982 + 69b7fcb commit 9370d39
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

All notable changes to this project will be documented in this file. See [standard-version](https:/conventional-changelog/standard-version) for commit guidelines.

### [4.0.6](https:/subugoe/tido/compare/v4.0.5...v4.0.6) (2024-08-21)

### [4.0.5](https:/subugoe/tido/compare/v4.0.4...v4.0.5) (2024-08-21)


### Bug Fixes

* move the pinia instance to Tido function for local usage ([8861fa2](https:/subugoe/tido/commit/8861fa2978ffcb247d22c14a8c9295013b34fe83))

### [4.0.4](https:/subugoe/tido/compare/v4.0.3...v4.0.4) (2024-07-17)


Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
Text vIewer for Digital Objects.
With this project we provide a highly configurable viewer for projects that implement the [TextAPI](https://subugoe.pages.gwdg.de/emo/text-api/).

## Demo

Please visit our [demo page](https://subugoe.github.io/tido/) where you can run TIDO with your own TextAPI endpoint
and also view our production examples.


## Overview

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
Expand Down Expand Up @@ -52,11 +58,6 @@ With this project we provide a highly configurable viewer for projects that impl

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Demo

Please visit our [demo page](https://subugoe.github.io/tido/) where you can run TIDO with your own TextAPI endpoint
and also view our production examples.


## Getting Started

Expand Down Expand Up @@ -404,7 +405,7 @@ tido.someMethod()

| Name | Arguments | Type | Description |
|----------|-----------|-----------------|--------------------------------------------------------------------------------------------|
| setTheme | name | `dark`, `light` | Sets color theme. The attribute `colo-scheme` at the container element will be overridden. |
| setTheme | name | `dark`, `light` | Sets color theme. The attribute `color-scheme` at the container element will be overridden. |



Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tido",
"version": "4.0.4",
"version": "4.0.6",
"description": "Text Viewer for Digital Objects (TIDO)",
"productName": "TIDO",
"keywords": [
Expand All @@ -25,6 +25,7 @@
"Nils Windisch"
],
"type": "module",
"main": "dist/tido.js",
"bugs": {
"url": "https:/subugoe/tido/issues"
},
Expand Down
5 changes: 3 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createApp, h } from 'vue';
import PrimeVue from 'primevue/config';
import { createPinia } from 'pinia'
import { createPinia } from 'pinia';
import { i18n } from './i18n';
import App from './App.vue';

Expand All @@ -12,13 +12,14 @@ import { getRGBColor } from '@/utils/color';
import { useToggle } from '@vueuse/core/index';
import { isDark } from '@/utils/is-dark';

const pinia = createPinia()

function generateId() {
return Math.random().toString(36).slice(2, 16);
}

window.Tido = function Tido(config = {}) {
const pinia = createPinia();

this.config = { ...config };

this.app = createApp({
Expand Down

0 comments on commit 9370d39

Please sign in to comment.