Skip to content

Commit

Permalink
Bugs/temporary fix fontsize ayat kursi (#95)
Browse files Browse the repository at this point in the history
* add eslint quote rule

* add mediaquery for phone

* eslint fix

* ignore DS_Store

* sort line google-site-verification
  • Loading branch information
azulkipli authored and mazipan committed May 16, 2019
1 parent 1235f4b commit 58459a6
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 52 deletions.
34 changes: 16 additions & 18 deletions .eslintrc.js
@@ -1,29 +1,27 @@
module.exports = {
plugins: ['@typescript-eslint'],
plugins: ["@typescript-eslint"],
parserOptions: {
parser: '@typescript-eslint/parser'
parser: "@typescript-eslint/parser"
},
extends: [
'@nuxtjs',
'plugin:nuxt/recommended',
],
extends: ["@nuxtjs", "plugin:nuxt/recommended"],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unused-vars': 'off',
'vue/component-name-in-template-casing': [
'error',
'PascalCase',
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-unused-vars": "off",
"vue/component-name-in-template-casing": [
"error",
"PascalCase",
{
ignores: ['nuxt', 'nuxt-link', 'nuxt-child', 'no-ssr']
ignores: ["nuxt", "nuxt-link", "nuxt-child", "no-ssr"]
}
],
'vue/html-closing-bracket-newline': [
'error',
"vue/html-closing-bracket-newline": [
"error",
{
singleline: 'never',
multiline: 'never'
singleline: "never",
multiline: "never"
}
]
],
quotes: [2, "single", { avoidEscape: true }]
}
}
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,6 +6,7 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
*.DS_Store

# Runtime data
pids
Expand Down
2 changes: 1 addition & 1 deletion constant/index.ts
Expand Up @@ -7,6 +7,6 @@ export const AppConstant = {
SEARCH_PAGE: 'Pencarian surat',
AYAT_KURSI: 'Ayat kursi',
ASMAUL_HUSNA: 'Asmaul husna',
DAILY_DOA: 'Do\'a harian',
DAILY_DOA: "Do'a harian",
BISMILLAH: '﷽'
}
4 changes: 2 additions & 2 deletions locale/id/index.js
@@ -1,4 +1,4 @@
const title = 'Qur\'an Offline'
const title = "Qur'an Offline"
module.exports = {
title,
lastRead: 'Terakhir dibaca',
Expand All @@ -7,7 +7,7 @@ module.exports = {
searchSurah: 'Pencarian surat',
ayatKursi: 'Ayat kursi',
asmaulHusna: 'Asmaul husna',
dailyDoa: 'Do\'a harian',
dailyDoa: "Do'a harian",
surahList: 'Daftar surat',
about: 'Tentang',
home: 'Beranda',
Expand Down
23 changes: 11 additions & 12 deletions nuxt.config.ts
@@ -1,8 +1,6 @@
/* eslint-disable no-unused-vars */
import NuxtConfiguration from '@nuxt/config'
import {
Configuration as WebpackConfiguration
} from 'webpack'
import { Configuration as WebpackConfiguration } from 'webpack'

const SurahConstant = require('./constant/surah')
const pkg = require('./package')
Expand Down Expand Up @@ -52,10 +50,10 @@ const routes = (): string[] => {
return res
}
interface sitemap {
url: string,
changefreq: string,
priority: number,
lastmodISO: string
url: string
changefreq: string
priority: number
lastmodISO: string
}

const routesSitemap = (): sitemap[] => {
Expand Down Expand Up @@ -97,7 +95,11 @@ const config: NuxtConfiguration = {
{ hid: 'twitter:description', name: 'twitter:description', content: pkg.description },
{ hid: 'twitter:url', name: 'twitter:url', content: PROD_PATH },

{ hid: 'google-site-verification', name: 'google-site-verification', content: 'jW7EK0wGpuReuZkQ-q900J7Z0KbCD9CCAZybfwcPe_U' }
{
content: 'jW7EK0wGpuReuZkQ-q900J7Z0KbCD9CCAZybfwcPe_U',
hid: 'google-site-verification',
name: 'google-site-verification'
}
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
Expand Down Expand Up @@ -140,10 +142,7 @@ const config: NuxtConfiguration = {
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/pwa',
'@nuxtjs/sitemap'
],
modules: ['@nuxtjs/pwa', '@nuxtjs/sitemap'],

sitemap: {
hostname: 'https://quran-offline.netlify.com/',
Expand Down
2 changes: 1 addition & 1 deletion pages/about.vue
Expand Up @@ -81,7 +81,7 @@ export default class PageAbout extends Vue {
@Mutation setHeaderTitle
get metaHead() {
const title = 'Tentang | Qur\'an Offline'
const title = "Tentang | Qur'an Offline"
return {
title,
meta: [
Expand Down
2 changes: 1 addition & 1 deletion pages/all-surah.vue
Expand Up @@ -52,7 +52,7 @@ export default class PageAllSurah extends Vue {
@Mutation setHeaderTitle
get metaHead() {
const title = 'Daftar semua surat dalam Al-Qur\'an | Qur\'an Offline'
const title = "Daftar semua surat dalam Al-Qur'an | Qur'an Offline"
return {
title,
meta: [
Expand Down
2 changes: 1 addition & 1 deletion pages/asmaul-husna.vue
Expand Up @@ -60,7 +60,7 @@ export default class AsmaulHusnaPage extends Vue {
@Mutation setHeaderTitle
get metaHead() {
const title = 'Daftar lengkap asmaul husna beserta terjemahan | Qur\'an Offline'
const title = "Daftar lengkap asmaul husna beserta terjemahan | Qur'an Offline"
return {
title,
meta: [
Expand Down
29 changes: 20 additions & 9 deletions pages/ayat-kursi.vue
Expand Up @@ -19,25 +19,28 @@ import { getAyatKursi } from '../services/index'
@Component({
async asyncData() {
const resp = await import(/* webpackChunkName: "ayat-kursi" */'~/static/data/ayat-kursi.json')
const resp = await import(/* webpackChunkName: 'ayat-kursi' */ '~/static/data/ayat-kursi.json')
return {
ayatKursi: resp.data
}
}
})
export default class AyatKursiPage extends Vue {
@State settingActiveTheme
@Mutation setHeaderTitle
@State settingActiveTheme;
@Mutation setHeaderTitle;
get metaHead() {
const title = 'Bacaan dan terjemah ayat kursi | Qur\'an Offline'
const title = "Bacaan dan terjemah ayat kursi | Qur'an Offline"
return {
title,
meta: [
{ hid: 'og:title', property: 'og:title', content: title },
{ hid: 'twitter:title', name: 'twitter:title', content: title },
{ hid: 'theme-color', name: 'theme-color', content: this.settingActiveTheme.bgColor }
{
hid: 'theme-color',
name: 'theme-color',
content: this.settingActiveTheme.bgColor
}
]
}
}
Expand All @@ -53,21 +56,29 @@ export default class AyatKursiPage extends Vue {
</script>

<style lang="scss" scoped>
.wrapper{
.wrapper {
width: 90%;
margin: 1em auto;
}
.arabic{
.arabic {
font-size: 4rem;
width: 100%;
margin-top: 1em;
text-align: right;
}
.translation{
.translation {
font-size: 2rem;
width: 100%;
font-style: italic;
margin-top: 1.5em;
text-align: left;
}
@media screen and (max-width: 641px) {
.arabic {
font-size: 2rem;
}
.translation {
font-size: 1rem;
}
}
</style>
4 changes: 2 additions & 2 deletions pages/daily-doa.vue
Expand Up @@ -72,7 +72,7 @@ export default class DailyDoaPage extends Vue {
@Mutation setHeaderTitle
get metaHead() {
const title = 'Daftar bacaan do\'a sehari-hari beserta terjemahan | Qur\'an Offline'
const title = "Daftar bacaan do'a sehari-hari beserta terjemahan | Qur'an Offline"
return {
title,
meta: [
Expand Down Expand Up @@ -114,7 +114,7 @@ export default class DailyDoaPage extends Vue {
}
mounted() {
this.setHeaderTitle(`Do'a Harian`)
this.setHeaderTitle("Do'a Harian")
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion pages/favorite.vue
Expand Up @@ -44,7 +44,7 @@ export default class FavoritePage extends Vue {
@Mutation setHeaderTitle;
get metaHead() {
const title = 'Baca berbagai surat favorit dalam Al-Qur\'an | Qur\'an Offline'
const title = "Baca berbagai surat favorit dalam Al-Qur'an | Qur'an Offline"
return {
title,
meta: [
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Expand Up @@ -111,7 +111,7 @@ export default class PageIndex extends Vue {
@Mutation setHeaderTitle
get metaHead() {
const title = 'Baca Al-Qur\'an dimana saja, langsung dari web browser Anda | Qur\'an Offline'
const title = "Baca Al-Qur'an dimana saja, langsung dari web browser Anda | Qur'an Offline"
return {
title,
meta: [
Expand Down
2 changes: 1 addition & 1 deletion pages/last-verse.vue
Expand Up @@ -53,7 +53,7 @@ export default class LastVersePage extends Vue {
@Mutation setHeaderTitle
get metaHead() {
const title = 'Ayat terakhir dibaca | Qur\'an Offline'
const title = "Ayat terakhir dibaca | Qur'an Offline"
return {
title,
meta: [
Expand Down
2 changes: 1 addition & 1 deletion pages/recommendation.vue
Expand Up @@ -38,7 +38,7 @@ export default class RecommendationPage extends Vue {
@Mutation setHeaderTitle;
get metaHead() {
const title = 'Baca surat rekomendasi dalam Al-Qur\'an | Qur\'an Offline'
const title = "Baca surat rekomendasi dalam Al-Qur'an | Qur'an Offline"
return {
title,
meta: [
Expand Down
2 changes: 1 addition & 1 deletion pages/settings.vue
Expand Up @@ -79,7 +79,7 @@ export default class SettingsPage extends Vue {
@Action setSettingTafsir
get metaHead() {
const title = 'Halaman setelan | Qur\'an Offline'
const title = "Halaman setelan | Qur'an Offline"
return {
title,
meta: [
Expand Down

0 comments on commit 58459a6

Please sign in to comment.