
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
os-window-vue
Advanced tools
A Vue wrapper around os-window which provides support for Vue events and properties.
Choose any of the following methods to get started. You also need to install the actual os-window library.
Run the following command in your command line to add both os-window and os-window-vue to your project
# for NPM
> npm install --save os-window os-window-vue
# for YARN
> yarn add os-window os-window-vue
In your application entrypoint you need to include the library os-window
. Afterwards you can use the vue component as shown in the example section:
import 'os-window';
You can also directly include the JavaScript module in the browser with the browser.js
entrypoint:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script type="module" src="node_modules/vue/dist/vue.js"></script>
<script type="module" src="node_modules/os-window/main.js"></script>
<script type="module" src="node_modules/os-window-vue/browser.js"></script>
</head>
<body>
<div id="app">
<os-window-vue
window-title="Random Cat Pic"
>
<img src="https://placekitten.com/250/250">
</os-window-vue>
</div>
<script type="module">
new Vue({
components: {
osWindowVue: window.OsWindowVue,
},
el: '#app',
});
</script>
</body>
</html>
This project is also published to the CDN unpkg, which enables you to skip any local module installation when including this module in your webpage. Don't forget to also include os-window
, which is also provided by unpkg:
<!-- Include specific version (recommended) -->
<script type="module" src="https://unpkg.com/os-window@0.3.1"></script>
<script type="module" src="https://unpkg.com/os-window-vue@0.1.6/browser.js"></script>
<!-- Include latest version (not recommended) -->
<script type="module" src="https://unpkg.com/os-window"></script>
<script type="module" src="https://unpkg.com/os-window-vue/browser.js"></script>
For more information have a look at the Installation Guide or the detailled documentation.
Try the latest version of os-window-vue online at https://bit.ly/2xXWUYg!
This example creates a non-interactive window with light macos theme
<template>
<os-window-vue
:window-title="'Random Cat Pic'"
>
<img src="https://placekitten.com/250/250">
</os-window-vue>
</template>
<script>
import OsWindowVue from 'os-window-vue';
export default {
components: {
OsWindowVue,
},
};
</script>
The next example creates a fully interactive window with dark macos theme
<template>
<os-window-vue
:hover="true"
:interactive="true"
:os-theme="'mac'"
:theme="'dark'"
:window-state="'maximized'"
:window-title="'Random Cat Pic'"
>
<img src="https://placekitten.com/250/250">
</os-window-vue>
</template>
<script>
import OsWindowVue from 'os-window-vue';
export default {
components: {
OsWindowVue,
},
};
</script>
Find more detailed information in the documentation.
If you have any ideas, just open an issue and tell me what you think.
If you find any bugs, just open an issue and let me know. Or go right ahead and create a pull request.
If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.
This project is licensed under MIT license. You'll find a copy of the MIT license in the file LICENSE.
FAQs
Integrates the os-window custom component into vue.
We found that os-window-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.