forked from youlikeapp/youlikeapp.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added extension page, updated README, changed routing.
- Loading branch information
1 parent
55360b6
commit 51687ba
Showing
15 changed files
with
111 additions
and
38 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 was deleted.
Oops, something went wrong.
30 changes: 15 additions & 15 deletions
30
app.37bcbfa407ae1e6ee11a.js → app.a2439a195b6efcad3c4c.js
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
export class ExtensionComponent implements ng.IComponentOptions { | ||
controller: ng.IControllerConstructor; | ||
template: string; | ||
|
||
constructor() { | ||
this.controller = ExtensionController; | ||
this.template = require("./extension.html"); | ||
} | ||
} | ||
|
||
class ExtensionController implements ng.IComponentController { | ||
// tslint:disable-next-line:no-empty | ||
$onInit(): void {} | ||
} |
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,19 @@ | ||
<div layout-padding layout="column"> | ||
<h1 class="md-headline">Установка расширения</h1> | ||
<div class="md-body-1"> | ||
<md-content> | ||
<h2>Google Chrome</h2> | ||
<p> | ||
<a href="https://chrome.google.com/webstore/detail/youlike-%D0%B2%D0%BE%D1%81%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BB%D0%B0/bpnhjhdmbhnjkhemgmfahahohblnombi" | ||
target="_blank"> | ||
Установить расширение для Google Chrome | ||
</a> | ||
</p> | ||
<p> | ||
Данное расширение позволит добавлять видео в список для проверки прямо со страницы YouTube. | ||
Достаточно будет лишь нажать на кнопку "Добавить в YouLike", | ||
расположенную под кнопками лайка и дизлайка. | ||
</p> | ||
</md-content> | ||
</div> | ||
</div> |
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,33 @@ | ||
import * as angular from "angular"; | ||
import { State, StateProvider, Ng1StateDeclaration } from "angular-ui-router"; | ||
import { ExtensionComponent } from "./extension.component"; | ||
import { NavService, NavItem } from "./../../common/nav/nav.service"; | ||
|
||
function routeConfig($stateProvider: StateProvider): void { | ||
"ngInject"; | ||
|
||
$stateProvider | ||
.state("app.extension", { | ||
url: "/extension", | ||
component: "extension" | ||
}); | ||
|
||
} | ||
function runConfig(NavService: NavService): void { | ||
const page: NavItem = { | ||
state: "app.extension", | ||
url: "/extension", | ||
label: "Установить расширение", | ||
icon: "extension" | ||
}; | ||
NavService.addNavItem(page); | ||
|
||
} | ||
|
||
const Extension: ng.IModule = angular | ||
.module("components.extension", []) | ||
.component("extension", new ExtensionComponent) | ||
.config(routeConfig) | ||
.run(runConfig); | ||
|
||
export default Extension; |
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
20 changes: 10 additions & 10 deletions
20
vendor.37bcbfa407ae1e6ee11a.js → vendor.a2439a195b6efcad3c4c.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
vendor.37bcbfa407ae1e6ee11a.js.map → vendor.a2439a195b6efcad3c4c.js.map
Large diffs are not rendered by default.
Oops, something went wrong.