Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIDO v5: show panels wrapper which contains text and switch between different types of text content #533

Merged
merged 60 commits into from
Dec 13, 2024

Conversation

orlinmalkja
Copy link
Contributor

No description provided.

@orlinmalkja orlinmalkja self-assigned this Nov 29, 2024
@orlinmalkja orlinmalkja changed the title show panels wrapper which contains text and switch between different types of text content TIDO v5: show panels wrapper which contains text and switch between different types of text content Nov 29, 2024
@orlinmalkja
Copy link
Contributor Author

@paulpestov Shall we display by default the first text content type or should one make the initial display configurable ?
I think it is not necessary to make it configurable, but just show initially the first text content type, it seems natural to me. The reason against making it configurable, is that obtaining the desired content type can be achieved by a very simple action - clicking at another button.

@paulpestov
Copy link
Collaborator

paulpestov commented Nov 29, 2024

Somehow I get this error at npm run dev:

Error: The following dependencies are imported but could not be resolved:
primeicons/primeicons.css (imported by .../tido/src/App.tsx)
primereact/button (imported by .../tido/src/components/panel/TextTypes.tsx)

src/main.tsx Outdated Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
src/components/panel/Panel.tsx Outdated Show resolved Hide resolved
src/components/panel/Panel.tsx Outdated Show resolved Hide resolved
@orlinmalkja
Copy link
Contributor Author

Somehow I get this error at npm run dev:

Error: The following dependencies are imported but could not be resolved: primeicons/primeicons.css (imported by .../tido/src/App.tsx) primereact/button (imported by .../tido/src/components/panel/TextTypes.tsx)

have you installed primereact locally ?

@paulpestov
Copy link
Collaborator

I think its missing in package.json

src/utils/http.tsx Outdated Show resolved Hide resolved
src/config.tsx Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
@orlinmalkja orlinmalkja merged commit 43d30a7 into next Dec 13, 2024
2 checks passed
@orlinmalkja orlinmalkja deleted the panel-render branch December 13, 2024 09:16
@@ -5,8 +5,14 @@ import './css/style.css'

import App from './App.tsx'

window.Tido = function Tido(config = {}) {
createRoot(document.getElementById('app')!).render(<App customConfig={config} />)
declare global {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paulpestov I merged the PR, but I have still one question. Which is the idea behind the lines 8-12 in this file ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to satisfy Typescript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants