-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7c08da
commit ac57a79
Showing
4 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os from 'os' | ||
/** | ||
* 先写个简单示例以后再优化 | ||
*/ | ||
const System = () => { | ||
const platform = os.platform() | ||
const release = os.release() | ||
const architecture = os.arch() | ||
|
||
return `${platform} ${release} ${architecture}` | ||
} | ||
export default { | ||
System | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import CPU from './CPU.js' | ||
import RAM from './RAM.js' | ||
import Disk from './Disk.js' | ||
import System from './System.js' | ||
|
||
export { CPU, RAM, Disk } | ||
export { CPU, RAM, Disk, System } |