Gathering detailed insights and metrics for @cardboard-box/windows
Gathering detailed insights and metrics for @cardboard-box/windows
Gathering detailed insights and metrics for @cardboard-box/windows
Gathering detailed insights and metrics for @cardboard-box/windows
npm install @cardboard-box/windows
Typescript
Module System
Node Version
NPM Version
70.6
Supply Chain
94
Quality
75.5
Maintenance
100
Vulnerability
98.6
License
TypeScript (62.83%)
SCSS (25.67%)
HTML (6.66%)
JavaScript (4.84%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
2,535
Last Day
1
Last Week
7
Last Month
23
Last Year
495
5 Commits
2 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.10
Package Id
@cardboard-box/windows@0.0.10
Unpacked Size
245.38 kB
Size
51.45 kB
File Count
24
NPM Version
6.14.7
Node Version
14.8.0
Cumulative downloads
Total Downloads
Last day
-50%
1
Compared to previous day
Last week
133.3%
7
Compared to previous week
Last month
-46.5%
23
Compared to previous month
Last year
-16.4%
495
Compared to previous year
1
2
Brings windows-application like layout and design to angular applications!
Install the library from npm: npm install @cardboard-box/windows
Include the module in your AppModule:
1... 2import { CardboardBoxWindowsModule } from '@cardboard-box/windows'; 3... 4 5@NgModule({ 6 declarations: [ 7 AppComponent 8 ], 9 imports: [ 10 BrowserModule, 11 AppRoutingModule, 12 CardboardBoxWindowsModule, //<--- This 13 ], 14 providers: [], 15 bootstrap: [AppComponent] 16}) 17export class AppModule { }
Setup your windows in your component
1<div class="some-container"> <!-- This container tells the box-container how big your desktop space should be--> 2 <box-container> 3 <box-window> 4 <div *title>Hello World</div> <!--This the title of the window--> 5 <div *body> <!-- This is the body content of the window --> 6 <h1>How are you?</h1> 7 </div> 8 </box-window> 9 <box-window> 10 <div *title>Other window!</div> 11 <div *body> 12 <h1>This is cool!</h1> 13 </div> 14 </box-window> 15 </box-container> 16</div>
Ensure the container has the correct sizing with a little bit of css!:
1.some-container { 2 position: fixed; /*Needs to be relative, fixed, or absolute for the styling to work correctly*/ 3 top: 0; 4 left: 0; 5 width: 100%; 6 height: 100%; 7 max-width: 100%; 8 max-height: 100%; 9 overflow: hidden; 10}
Theme your windows however you want! Here are some default styles (these can go in your styles.scss file!):
1$window-border: rgb(41, 130, 204); 2 3//Everything is contained within this "window-container" class 4.window-container { 5 background-color: rgb(68, 68, 68); 6 7 //The actual windows are within the "window-background" class 8 .window-background { 9 10 //This represents a single resizable and dragable window 11 .window-container { 12 border: 2px solid #{$window-border}; 13 background: #fff; 14 box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.15); 15 16 //This is the title bar for each window 17 .window-title { 18 background-color: $window-border; 19 color: #fff; 20 padding-left: 5px; 21 padding-bottom: 2px; 22 23 //This represents just the customizable title text 24 .title-text { 25 26 } 27 28 //This is the container for the buttons in the title bar 29 .title-buttons { 30 //Each of these represents a single button within the title bar 31 button { 32 color: #fff; 33 border: none; 34 outline: none; 35 background-color: unset; 36 font-family: 'Font Awesome 5 Free'; 37 38 //This is how you cange the window-icons (I'm using font-awesome) 39 &.minimize::before { 40 content: '\f2d1'; 41 } 42 43 &.maximize::before { 44 content: '\f2d0'; 45 } 46 47 &.close::before { 48 content: '\f410' 49 } 50 51 &.restore::before { 52 content: '\f2d2'; 53 } 54 55 //This can be used to hide the close button 56 /*&.close { 57 display: none; 58 }*/ 59 } 60 } 61 } 62 } 63 } 64 65 //These are the window titles at the bottom of the page 66 .task-bar { 67 background-color: rgba(0, 0, 0, 0.75); 68 color: #fff; 69 70 //This represents a single windows title 71 .window-item { 72 background-color: unset; 73 color: #fff; 74 outline: none; 75 border: #ddd; 76 margin-left: 10px; 77 78 //This is whether or not the window is active 79 &.active { 80 border-top: 1px solid #fff; 81 } 82 } 83 } 84}
Run your application and see the magic!
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
108 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More