-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
13 changed files
with
131 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Fractal Menu Enhancer | ||
===================== | ||
|
||
This is a test. |
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.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
import { PackageAbstract } from '@/model/package-abstract'; | ||
import { IPackageJSON } from '@/model/package-json'; | ||
|
||
export interface PackageMetaDataDTO extends PackageAbstract { | ||
export interface PackageMetaDataDTO extends IPackageJSON { | ||
|
||
readonly versions: { | ||
[key: number]: string; | ||
}; | ||
readonly distTags: IDistTags; | ||
readonly time: ITimes; | ||
readonly users: {}; | ||
readonly _id: string; | ||
readonly _rev: string; | ||
} | ||
|
||
export interface ITimes { | ||
[key: number]: Date; | ||
created: string; | ||
modified: string; | ||
} | ||
|
||
export interface IDistTags { | ||
[key: string]: number; | ||
} | ||
|
||
export interface IVersions { | ||
[key: number]: string | PackageMetaDataDTO; | ||
} |
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 was deleted.
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,39 @@ | ||
<template> | ||
<div class="about"> | ||
<h2>{{this.$route.params.scope? `${this.$route.params.scope}/` : ''}}{{this.$route.params.packageName}}</h2> | ||
<div>{{data.packageDetail}}</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Prop, Vue } from 'vue-property-decorator'; | ||
import Package from '@/model/Package'; | ||
import PackagesService from '@/services/PackageService'; | ||
import Router from '@/router'; | ||
@Component | ||
export default class PackageDetail extends Vue { | ||
@Prop() private dataProp!: { packageDetail: Package }; | ||
private data: { packageDetail: Package | null | string} = this.dataProp; | ||
constructor() { | ||
super(); | ||
this.data = { | ||
packageDetail: null, | ||
}; | ||
this.getPackageDetails(); | ||
} | ||
private getPackageDetails() { | ||
PackagesService.Instance.getPackageDetail({ | ||
scope: Router.currentRoute.params.scope, | ||
packageName: Router.currentRoute.params.packageName, | ||
}).then((response) => { | ||
console.log('response', response); | ||
this.data.packageDetail = response; | ||
}); | ||
} | ||
} | ||
</script> |