Skip to content

Commit

Permalink
Add WITH_TLDRAW
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktoriia committed Nov 28, 2023
1 parent c0ada04 commit 4b60f08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ansible/roles/tldraw-client-core/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,27 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: tldraw-client-svc.yml.j2
when: WITH_TLDRAW is defined and WITH_TLDRAW|bool

- name: tldraw client configmap
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: tldraw-client-configmap.yml.j2
apply: yes
when: WITH_TLDRAW is defined and WITH_TLDRAW|bool

- name: tldraw client deployment
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: tldraw-client-deployment.yml.j2
when: WITH_TLDRAW is defined and WITH_TLDRAW|bool

- name: tldraw client ingress
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: tldraw-client-ingress.yml.j2
apply: yes
apply: yes
when: WITH_TLDRAW is defined and WITH_TLDRAW|bool
3 changes: 2 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect } from 'react';
import { useEffect } from 'react';
import { Tldraw, useFileSystem } from '@tldraw/tldraw';
import { useUsers } from 'y-presence';
import { useCookies } from 'react-cookie';
Expand All @@ -18,6 +18,7 @@ function Editor({ roomId }: { roomId: string }) {
onMount={onMount}
onPatch={saveUserSettings}
darkMode={getDarkMode()}
showMultiplayerMenu={false}
{...events}
onSaveProject={onSaveProject}
onSaveProjectAs={onSaveProjectAs}
Expand Down

0 comments on commit 4b60f08

Please sign in to comment.