Skip to content

Commit 6eca839

Browse files
authored
Cleaning up.
2 parents 9f65927 + 24b30b4 commit 6eca839

File tree

5 files changed

+9
-24
lines changed

5 files changed

+9
-24
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"url": "git+https://github.com/opencor/webapp.git"
2424
},
2525
"type": "module",
26-
"version": "0.20251208.1",
26+
"version": "0.20251208.2",
2727
"scripts": {
2828
"archive:web": "bun src/renderer/scripts/archive.web.js",
2929
"build": "electron-vite build",

src/renderer/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ There are two versions of OpenCOR:
77
1. **OpenCOR:** a desktop application that can be run on [Intel](https://en.wikipedia.org/wiki/List_of_Intel_processors)-based and [ARM](https://en.wikipedia.org/wiki/ARM_architecture_family)-based [Windows](https://en.wikipedia.org/wiki/Microsoft_Windows), [Linux](https://en.wikipedia.org/wiki/Linux), and [macOS](https://en.wikipedia.org/wiki/MacOS) machines; and
88
2. **OpenCOR's Web app:** a [Web app](https://en.wikipedia.org/wiki/Web_application) that can be run on a Web browser.
99

10-
This package is a [Vue 3](https://vuejs.org/) component for OpenCOR, built with the [Composition API](https://vuejs.org/guide/extras/composition-api-faq).
10+
Some characteristics of this package are that:
11+
- It is built as a [Vue 3](https://vuejs.org/) component using the [Composition API](https://vuejs.org/guide/extras/composition-api-faq).
12+
- It uses [PrimeVue](https://www.primefaces.org/primevue/) as its UI framework.
13+
- It uses [Tailwind CSS](https://tailwindcss.com/) for styling.
14+
- It can be used as a standalone Web app or embedded in a Vue 3 application.
1115

1216
## Usage
1317

src/renderer/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</style>
2323
</head>
2424
<body>
25-
<div id="app" />
25+
<div id="app" style="height: 100vh; height: 100dvh;" />
2626
<script type="module" src="./src/main.ts"></script>
2727
</body>
2828
</html>

src/renderer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"./style.css": "./dist/opencor.css"
4141
},
42-
"version": "0.20251208.1",
42+
"version": "0.20251208.2",
4343
"scripts": {
4444
"build": "vite build",
4545
"build:lib": "vite build --config vite.lib.config.ts && cp index.d.ts dist/index.d.ts",

src/renderer/src/components/OpenCOR.vue

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<BlockUI
33
ref="blockUi"
44
:blocked="compBlockUiEnabled"
5-
:class="['overflow-hidden', blockUiClass]"
5+
class="overflow-hidden h-full"
66
@click="activateInstance"
77
@focus="activateInstance"
88
@focusin="activateInstance"
@@ -686,7 +686,6 @@ electronApi?.onSelect((filePath: string) => {
686686
687687
// A few things that can only be done when the component is mounted.
688688
689-
const blockUiClass = vue.ref('');
690689
const width = vue.ref<number>(0);
691690
const height = vue.ref<number>(0);
692691
const heightMinusMainMenu = vue.ref<number>(0);
@@ -701,15 +700,6 @@ vue.onMounted(() => {
701700
const greatGrandParentElement = grandParentElement?.parentElement;
702701
const greatGreatGrandParentElement = greatGrandParentElement?.parentElement;
703702
704-
blockUiClass.value =
705-
parentElement?.tagName === 'DIV' &&
706-
parentElement.id === 'app' &&
707-
grandParentElement?.tagName === 'BODY' &&
708-
greatGrandParentElement?.tagName === 'HTML' &&
709-
greatGreatGrandParentElement === null
710-
? 'opencor-application'
711-
: 'opencor-component';
712-
713703
// Customise our IDs.
714704
715705
toastId.value = `opencorToast${String(crtInstance?.uid)}`;
@@ -1088,13 +1078,4 @@ async function onGitHubButtonClick(): Promise<void> {
10881078
color: var(--p-red-200);
10891079
}
10901080
}
1091-
1092-
.opencor-application {
1093-
height: 100vh;
1094-
height: 100dvh;
1095-
}
1096-
1097-
.opencor-component {
1098-
height: 100%;
1099-
}
11001081
</style>

0 commit comments

Comments
 (0)