Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add popups to show followers, members, and memberships on profiles
- Loading branch information
Showing
5 changed files
with
155 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* globals beaker */ | ||
import { html } from '../../../vendor/lit-element/lit-element.js' | ||
import { BasePopup } from './base.js' | ||
import '../custom-html.js' | ||
|
||
// exported api | ||
// = | ||
|
||
export class GeneralPopup extends BasePopup { | ||
static get properties () { | ||
return { | ||
} | ||
} | ||
|
||
constructor (opts) { | ||
super() | ||
this.renderFn = opts.render | ||
} | ||
|
||
get shouldShowHead () { | ||
return false | ||
} | ||
|
||
get shouldCloseOnEscape () { | ||
return true | ||
} | ||
|
||
get shouldCloseOnOuterClick () { | ||
return true | ||
} | ||
|
||
get maxWidth () { | ||
return '710px' | ||
} | ||
|
||
// management | ||
// | ||
|
||
static async create (opts) { | ||
return BasePopup.create(GeneralPopup, opts) | ||
} | ||
|
||
static destroy () { | ||
return BasePopup.destroy('general-popup') | ||
} | ||
|
||
// rendering | ||
// = | ||
|
||
renderBody () { | ||
return this.renderFn() | ||
} | ||
} | ||
|
||
customElements.define('general-popup', GeneralPopup) |
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
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
fdda314
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: