| Name | Type | Required | Default value |
|---|---|---|---|
| time | String | true |
| Name |
|---|
| dt |
| hour |
| minute |
| period |
| display |
| suggestions |
| Name |
|---|
| open |
| value |
| originalDate |
- TimeInput
- .update() ⇒
string - .toggle() ⇒
undefined - .togglePeriod() ⇒
undefined
| async addMediaToGallery({ commit }, { gallery, file }) { | |
| const formData = new FormData() | |
| formData.append('file', file) | |
| const options = { | |
| headers: { 'Content-Type': 'multipart/form-data' } | |
| } | |
| const response = await this.$axios.$post( | |
| `/api/1.0/gallery/${gallery.id}/add-media/`, | |
| formData, |
| # Stripe API keys - Production keys to be placed in ENV variable | |
| STRIPE_PUBLIC_KEY = os.environ.get("STRIPE_PUBLIC_KEY", "pk_test_vVq7bqVRXI5vcF7mqKiQN1g3") | |
| STRIPE_SECRET_KEY = os.environ.get("STRIPE_SECRET_KEY", "sk_test_aGWHXGGEJNvfZHTz4AcuABVl") | |
| # Stripe Plan IDs | |
| if DEBUG: | |
| STRIPE_PROJECT_PLAN_ID = 'plan_ClpqLvheKgrYJs' | |
| STRIPE_PROFESSIONAL_PLAN_ID = 'plan_ClpruCuWUAGHwi' | |
| else: | |
| # TODO - create production plans in Stripe |
| <template> | |
| <div @click="click" class="timezone"> | |
| <simple-svg | |
| :filepath="'/static/images/timezones-clean-min.svg'" | |
| :width="'100%'" | |
| :height="'100%'" | |
| @ready="selectElement" /> | |
| <img class="timezone__map" src="/static/images/map.png"> |
| class PluginView(generics.RetrieveAPIView): | |
| serializer_class = PluginSerializer | |
| def get_object(self): | |
| developer = User.objects.get(auth_token=self.request.auth) | |
| return get_object_or_404(Plugin, developer=developer) | |
| Name | Type | Required | Default value |
|---|---|---|---|
| time | String | true |
| Name |
|---|
| dt |
| hour |
| minute |
| period |
| display |
| suggestions |
| Name |
|---|
| open |
| value |
| originalDate |
stringundefinedundefined| function appendLists(el) { | |
| const boardId = el.value | |
| // skip boards with no lists | |
| if (!lists[boardId]) { return } | |
| // create a new ul | |
| let ul = document.createElement('ul') | |
| // append all the list li's to the new ul |
| def pct_breakdown(self, grouping): | |
| # provide the grouping and this function will return the percent upvoted for each group | |
| rating_breakdown = {} | |
| groups = IdeaInteraction.objects.filter(idea=self.pk).values(grouping) | |
| for item in groups: | |
| for key, value in item.items(): | |
| upvotes = IdeaInteraction.objects.filter(idea=self.pk, vote='up-vote', **{key: value}).count() | |
| downvotes = IdeaInteraction.objects.filter(idea=self.pk, vote='down-vote', **{key: value}).count() | |
| rating = (upvotes / (upvotes + downvotes)) * 100 | |
| rating_breakdown[value] = rating |
I hereby claim:
To claim this, I am signing this object:
| FROM dockerfile/python | |
| RUN mkdir /app | |
| WORKDIR /app | |
| ADD . /app/ | |
| RUN pip install -r requirements.txt | |
| RUN python -m spacy.en.download |
| api: | |
| build: ./api | |
| command: uwsgi --socket 0.0.0.0:5000 --protocol=http -w wsgi:app | |
| expose: | |
| - "5000" | |
| web: | |
| build: ./web | |
| ports: | |
| - "80:80" |