Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions .github/workflows/main.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/node_modules
/local.properties
/.idea
**/build
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/previewer/phone/phoneSettingConfig_MateX2.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/previewer/phone/phoneSettingConfig_P40.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions .idea/previewer/previewConfigV2.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/previewer/tv/tvSettingConfig_TV.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions OAT.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<oatconfig>
<filefilterlist>
<filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
<filteritem type="filename" name="hvigorfile.js" desc="hvigor script, Automatically generated by DevEco Studio"/>
<filteritem type="filename" name="*.json5" desc="hvigor profile, Automatically generated by DevEco Studio"/>
</filefilter>
<filefilter name="defaultPolicyFilter" desc="Filters for compatibility, license header policies">
<filteritem type="filename" name="hvigorfile.js" desc="hvigor script, Automatically generated by DevEco Studio"/>
<filteritem type="filename" name="*.json5" desc="hvigor profile, Automatically generated by DevEco Studio"/>
</filefilter>
</filefilterlist>
<policylist>
<policy name="projectPolicy" desc= "">
<policyitem type="copyright" name="Application Library Engineering Group." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/>
</policy>
</policylist>
</oatconfig>
</configuration>
83 changes: 83 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
## Library Name:
Smart TV

## Library Version:
1.0.0
## Library Release Date:
03-06-2022
## Library Overview:
Smart TV shows following functionalites.
- Displays list of movies in scroll view.
- Every card Has unique background.
- movies are differentiated based on genre.
<hr>

### GitHub link: [Smart TV](https://github.com/applibgroup/smart_tv)
<hr>

## Screenshot of the Library:
![image](https://user-images.githubusercontent.com/77436328/176849316-d69e1e8e-799d-42cb-9d1f-41308204cf32.png)


# Library Feature1:
### Description:
Fecthes Time
### Code Snippet:
```
fetchTime: function () {
let date = new Date();


let hrs = date.getHours() + ""

if (hrs < 10) {
this.time_h_0 = 0;
this.time_h_1 = hrs[0];
}
else {
this.time_h_0 = hrs[0];
this.time_h_1 = hrs[1];
}

let min = date.getMinutes() + ""

if (min < 10) {
this.time_m_0 = 0;
this.time_m_1 = min[0];
}
else {
this.time_m_0 = min[0];
this.time_m_1 = min[1];
}
this.time_period = date.getHours() >= 12 ? 'PM' : 'AM';

}
```

### Screenshot:
![image](https://user-images.githubusercontent.com/77436328/176849745-b051618d-ab1f-4f12-9790-f71e269d7b8b.png)


# Library Feature2:
### Description:
on click card the background changes
### Code Snippet:
```
onTap: function(ele)
{
console.log(this.$element(ele)+" "+this.$element(ele).style.width);
this.$element(ele).style.width = '500fp';
this.$element(ele).style.height = '50fp';
console.log(this.$element('myVideo'))
this.$element('myVideo').attr.src = "common/image/4KColorExplosiononWHITEBackground.mp4"
}
```
<!--img src="https://user-images.githubusercontent.com/77436328/173222109-a817734a-5dae-48d0-b7b6-809b6dc162d9.png" width="800" height="500"-->
### Screenshot:
![image](https://user-images.githubusercontent.com/77436328/176850619-f63d3dfc-cba1-48a2-8ce6-1d5ba748ff65.png)


## Advanced feature that could be implemented in Future in this library:
carousel view for upper section, future work on download section, search, apps and settings section
## Conclusion:
Displays number of movies in on section, responsive onTap and scroll view.
27 changes: 27 additions & 0 deletions build-profile.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"app": {
"signingConfigs": [],
"compileSdkVersion": 8,
"compatibleSdkVersion": 8,
"products": [
{
"name": "default",
"signingConfig": "default",
}
]
},
"modules": [
{
"name": "entry",
"srcPath": "./entry",
"targets": [
{
"name": "default",
"applyToProducts": [
"default"
]
}
]
}
]
}
3 changes: 3 additions & 0 deletions entry/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules
/.preview
/build
10 changes: 10 additions & 0 deletions entry/build-profile.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"apiType": 'faMode',
"buildOption": {
},
"targets": [
{
"name": "default",
}
]
}
17 changes: 17 additions & 0 deletions entry/hvigorfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright (C) 2022 Application Library Engineering Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently.
module.exports = require('@ohos/hvigor-ohos-plugin').legacyHapTasks
5 changes: 5 additions & 0 deletions entry/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions entry/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "entry",
"version": "1.0.0",
"ohos": {
"org": "huawei",
"buildTool": "hvigor",
"directoryLevel": "module"
},
"description": "example description",
"repository": {},
"license": "ISC",
"dependencies": {}
}
Loading