.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
}
.fixed-bottom {
This file contains hidden or 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
| const submitComment = async (e, id) => { | |
| e.preventDefault(); | |
| const data = { | |
| comment: commentData, | |
| article: id | |
| } | |
| await axios.post(`${process.env.NEXT_PUBLIC_ROOT_URL}/api/v1/article_comment/`, data, { | |
| headers: { Authorization: `Token ${token}` }, | |
| }) | |
| .then(res => { |
This file contains hidden or 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
| name | code | phone-code | continent | capital | currency | timezones | |
|---|---|---|---|---|---|---|---|
| Afghanistan | AF | 93 | Asia | Kabul | Afghani | UTC +04:30 | |
| Albania | AL | 355 | Europe | Tirana | Lek | UTC +01:00 | |
| Algeria | DZ | 213 | Africa | Algiers | Dinar | UTC +01:00 | |
| American Samoa | AS | 1-684 | Oceania | Pago Pago | Dollar | UTC -11:00 | |
| Andorra | AD | 376 | Europe | Andorra la Vella | Euro | UTC +01:00 | |
| Angola | AO | 244 | Africa | Luanda | Kwanza | UTC +01:00 | |
| Anguilla | AI | 1-264 | North America | The Valley | Dollar | UTC -04:00 | |
| Antarctica | AQ | 672 | Antarctica | None | None | UTC +11:00 | |
| Antigua and Barbuda | AG | 1-268 | North America | St. John's | Dollar | UTC -04:00 |
This file contains hidden or 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
| /* extra small */ | |
| /* @media (min-width: 320px) and (max-width: 575px){ | |
| } */ | |
| /* extra small end*/ | |
| /* small device */ | |
| /* @media (min-width: 576px) and (max-width: 767px){ | |
| } */ |
take title valye from product title and put - between space and push to new url
methods:{
product(value){
console.log(value)
const title = value.title
const clearTitle = title.replaceAll(' ','-')
console.log(clearTitle)
this.$router.push({
path:`/${clearTitle}/`,const route = this.$router.history.current.path
const removeUnderScoretitle = route.split('_').join(' ')
const removeAllSlash = removeUnderScoretitle.replace(/\\|\//g,'')
const title = removeAllSlash.replace('category','')
console.log(title)extract source url and save in database
def save(self,*args,**kwargs):
link = self.embeddedLink
pattern = r"<iframe[^>]*src=[\"|']([^'\"]+)[\"|'][^>]*>"
newLink = re.findall(pattern,link)[0]
self.embeddedLink = newLink
super().save(*args,**kwargs) const route = this.$router.history.current.path
const title = route.split('_').join(' ')
const finalTitle = title.replace(/\\|\//g,'')
console.log(finalTitle)
return finalTitle;