| |
@@ -1,5 +1,6 @@
|
| |
import { Component } from '@angular/core';
|
| |
- import { NavController } from 'ionic-angular';
|
| |
+ import { NavController, NavParams } from 'ionic-angular';
|
| |
+ import { NotificationsPage } from '../../pages/notifications/notifications';
|
| |
import { PackageSearchPage } from '../package-search/package-search';
|
| |
|
| |
@Component({
|
| |
@@ -8,14 +9,125 @@
|
| |
})
|
| |
export class MorePage {
|
| |
|
| |
- pages = {
|
| |
- packageSearch: PackageSearchPage
|
| |
- };
|
| |
+ /**
|
| |
+ * For demo purposes
|
| |
+ */
|
| |
+ private loggedIn: boolean;
|
| |
|
| |
- constructor(private navCtrl: NavController) {
|
| |
+ constructor(public navCtrl: NavController, public navParams: NavParams) {
|
| |
+ this.loggedIn = false;
|
| |
}
|
| |
|
| |
- open(page:string) {
|
| |
- this.navCtrl.push(this.pages[page]);
|
| |
+ /**
|
| |
+ * Open page to the corresponding menu item
|
| |
+ * @param page page name clicked
|
| |
+ */
|
| |
+ itemSelected(page) {
|
| |
+ switch (page) {
|
| |
+ case 'bookmarks':
|
| |
+ this.navCtrl.push(BookmarksPage, { animate: true, direction: 'forward' });
|
| |
+ break;
|
| |
+ case 'about':
|
| |
+ this.navCtrl.push(AboutPage, { animate: true, direction: 'forward' });
|
| |
+ break;
|
| |
+ case 'package':
|
| |
+ this.navCtrl.push(PackageSearchPage, { animate: true, direction: 'forward' });
|
| |
+ }
|
| |
+ }
|
| |
+
|
| |
+
|
| |
+ /**
|
| |
+ * Open the notifications pane from the home page
|
| |
+ */
|
| |
+ openNotificationPage() {
|
| |
+ this.navCtrl.push(NotificationsPage, { animate: true, direction: 'forward' });
|
| |
}
|
| |
}
|
| |
+
|
| |
+ /**
|
| |
+ * About Page Component
|
| |
+ */
|
| |
+
|
| |
+ @Component({
|
| |
+ selector: 'about-us',
|
| |
+ templateUrl: 'about.html',
|
| |
+ })
|
| |
+ export class AboutPage {
|
| |
+
|
| |
+ /**
|
| |
+ * List of Items to show in about us list
|
| |
+ */
|
| |
+ public navItems = [];
|
| |
+
|
| |
+ constructor(public navCtrl: NavController, public navParams: NavParams) {
|
| |
+ this.navItems = [
|
| |
+ {
|
| |
+ 'title': 'What is Fedora?',
|
| |
+ 'description': 'The Fedora Project is a community of people working together to build a free and open source software platform and to collaborate on and share user-focused solutions built on that platform. Or, in plain English, we make an operating system and we make it easy for you do useful stuff with it. <br/> <br/> The Fedora community includes thousands of individuals with different views and approaches, but together we share some common values. We call these the “Four Foundations”: Freedom, Friends, Features, and First.'
|
| |
+ },
|
| |
+ {
|
| |
+ 'title': 'Our Mission',
|
| |
+ 'description': 'Fedora creates an innovative platform for hardware, clouds, and containers that enables software developers and community members to build tailored solutions for their users.<br/><br/>At the operating system level, we don’t just integrate. We do new things — we build a platform, not just a distribution. The Features and First foundations drive us to innovate. We do all of this as a transparent, collaborative community of Friends, and entirely as open source and free software — Freedom.'
|
| |
+ },
|
| |
+ {
|
| |
+ 'title': 'Our Method',
|
| |
+ 'description': 'The Fedora Project is a center for innovation in free and open source software. In our community,contributors of all kinds come together to advance the ecosystem for the benefit of everyone. The Fedora community contributes everything it builds back to the free and open source world and continues to make advances of significance to the broader community, as evidenced by the regular and rapid incorporation of its features into other Linux distributions. Regardless of which Linux distribution you use, you are relying on code developed within the Fedora Project.<br/><br/>We believe software patents are harmful, a hindrance to innovation in software development, and are inconsistent with the values of free and open source software. While tightly integrating proprietary and patent encumbered components might superficially improve ease of use, this practice does not benefit the community in the long run. The Fedora community prefers approaches that benefit the progress of free software in the future over those that emphasize short term ease of use.'
|
| |
+ },
|
| |
+ {
|
| |
+ 'title': 'Women and Diversity',
|
| |
+ 'description': ''
|
| |
+ },
|
| |
+ {
|
| |
+ 'title': 'Contribute to Fedora App',
|
| |
+ 'description': 'Fedora App is the central location for Fedora users and innovators to stay updated on The Fedora Project. News updates, social posts, Ask Fedora, as well as articles from Fedora Magazine are all held under this app. <br/> <br/> Contribute to app development : <a href="https://pagure.io/Fedora-app/">https://pagure.io/Fedora-app/</a>'
|
| |
+ }
|
| |
+ ]
|
| |
+ }
|
| |
+
|
| |
+ /**Open detailed info of selected item
|
| |
+ * @param navItem clicked item of about Fedora
|
| |
+ */
|
| |
+ openAboutDetailPage(item) {
|
| |
+ this.navCtrl.push(AboutDetailPage, { item: item });
|
| |
+ }
|
| |
+ }
|
| |
+
|
| |
+ /**
|
| |
+ * About Detailed Component
|
| |
+ */
|
| |
+ @Component({
|
| |
+ selector: 'about-detail',
|
| |
+ templateUrl: 'about-detail.html',
|
| |
+ })
|
| |
+ export class AboutDetailPage {
|
| |
+ /**
|
| |
+ * Individual About Item receieved
|
| |
+ */
|
| |
+ public selectedItem;
|
| |
+ constructor(public navCtrl: NavController, public navParams: NavParams) {
|
| |
+ this.selectedItem = navParams.data.item;
|
| |
+ }
|
| |
+ }
|
| |
+
|
| |
+ /**
|
| |
+ * Bookmarks Page Component
|
| |
+ */
|
| |
+
|
| |
+ @Component({
|
| |
+ selector: 'bookmarks',
|
| |
+ templateUrl: 'bookmarks.html',
|
| |
+ })
|
| |
+ export class BookmarksPage {
|
| |
+
|
| |
+ constructor(public navCtrl: NavController, public navParams: NavParams) {
|
| |
+ }
|
| |
+
|
| |
+ /**
|
| |
+ * Switches to Mag View to read articles
|
| |
+ */
|
| |
+ toMag() {
|
| |
+ this.navCtrl.parent.select(1);
|
| |
+ }
|
| |
+ }
|
| |
+
|
| |
+
|
| |
Blocked by #74, #82 and #89.Prototype - https://marvelapp.com/8j6ihg7/screen/43345150