├── .gitignore
├── 01-Vue-Giris
└── index.html
├── 02-Vue-Uygulama
├── app.js
└── index.html
├── 03-V-IF-ve-V-SHOW
├── app.js
└── index.html
├── 04-For-Loop
├── app.js
└── index.html
├── 05-V-Bind
├── app.js
└── index.html
├── 06-Uygulama-1
├── app.js
└── index.html
├── 07-Vue-CLI-Kurulumu
├── vue-cli-component
│ ├── .browserslistrc
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ └── index.html
│ ├── src
│ │ ├── App.vue
│ │ ├── assets
│ │ │ ├── css
│ │ │ │ └── style.css
│ │ │ └── logo.png
│ │ ├── components
│ │ │ ├── Button.vue
│ │ │ └── Title.vue
│ │ └── main.js
│ └── vue.config.js
└── vue-cli
│ ├── .browserslistrc
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── assets
│ │ └── logo.png
│ └── main.js
│ └── vue.config.js
├── 08-Form-ve-Data-Binding
└── vue-form
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── assets
│ │ └── logo.png
│ ├── components
│ │ └── Form.vue
│ └── main.js
│ └── vue.config.js
├── 09-Vue-Router
└── router-app
│ ├── .browserslistrc
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── assets
│ │ └── logo.png
│ ├── components
│ │ └── HelloWorld.vue
│ ├── main.js
│ ├── router
│ │ └── index.js
│ └── views
│ │ ├── AboutView.vue
│ │ ├── HomeView.vue
│ │ ├── NotFound.vue
│ │ ├── StudentInfo.vue
│ │ └── Students.vue
│ └── vue.config.js
├── 10-Gelismis-Component
└── components
│ ├── .browserslistrc
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── assets
│ │ └── logo.png
│ ├── components
│ │ └── Header.vue
│ └── main.js
│ └── vue.config.js
├── 11-Planner-Uygulama-2
└── project-planner
│ ├── .browserslistrc
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── data
│ └── db.json
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── assets
│ │ └── logo.png
│ ├── components
│ │ ├── FilterNav.vue
│ │ ├── Navbar.vue
│ │ └── SingleProject.vue
│ ├── main.js
│ ├── router
│ │ └── index.js
│ └── views
│ │ ├── AddProject.vue
│ │ ├── EditProject.vue
│ │ └── Home.vue
│ └── vue.config.js
├── 12-CompositionAPI
└── composition-api
│ ├── .browserslistrc
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── assets
│ │ └── logo.png
│ ├── components
│ │ └── Contents.vue
│ ├── composables
│ │ └── getContentsFetch.js
│ ├── main.js
│ ├── router
│ │ └── index.js
│ └── views
│ │ ├── AboutView.vue
│ │ └── HomeView.vue
│ └── vue.config.js
├── 13-ToDo-Uyguama-3
└── todo
│ ├── .browserslistrc
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── assets
│ │ └── logo.png
│ ├── components
│ │ └── HelloWorld.vue
│ ├── main.js
│ ├── router
│ │ └── index.js
│ └── views
│ │ ├── AboutView.vue
│ │ └── HomeView.vue
│ └── vue.config.js
├── 14-Firebase-Vue
└── fb-app
│ ├── .browserslistrc
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── assets
│ │ └── logo.png
│ ├── components
│ │ └── HelloWorld.vue
│ ├── firebase
│ │ └── config.js
│ ├── main.js
│ ├── router
│ │ └── index.js
│ └── views
│ │ ├── AboutView.vue
│ │ └── HomeView.vue
│ └── vue.config.js
├── 15-Blog-Uygulama-4
└── blog
│ ├── .browserslistrc
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── assets
│ │ └── logo.png
│ ├── components
│ │ ├── Navbar.vue
│ │ └── SinglePost.vue
│ ├── composables
│ │ └── getPosts.js
│ ├── firebase
│ │ └── config.js
│ ├── main.js
│ ├── router
│ │ └── index.js
│ └── views
│ │ ├── AddPost.vue
│ │ ├── Home.vue
│ │ └── Post.vue
│ └── vue.config.js
├── 16-ChatApp-Uygulama-5
└── chat-app
│ ├── .browserslistrc
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── assets
│ │ ├── logo.png
│ │ └── main.css
│ ├── components
│ │ ├── ChatWindow.vue
│ │ ├── LoginForm.vue
│ │ ├── Navbar.vue
│ │ ├── NewChatForm.vue
│ │ └── SignupForm.vue
│ ├── composables
│ │ ├── getCollection.js
│ │ ├── getUser.js
│ │ ├── useCollection.js
│ │ ├── useLogin.js
│ │ ├── useLogout.js
│ │ └── useSignup.js
│ ├── firebase
│ │ └── config.js
│ ├── main.js
│ ├── router
│ │ └── index.js
│ └── views
│ │ ├── Chatroom.vue
│ │ └── Welcome.vue
│ └── vue.config.js
├── 17-Playlist-Uygulama-6
└── playlist-app
│ ├── .browserslistrc
│ ├── .firebase
│ └── hosting.ZGlzdA.cache
│ ├── .firebaserc
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── firebase.json
│ ├── firestore.indexes.json
│ ├── firestore.rules
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── assets
│ │ ├── logo.png
│ │ └── main.css
│ ├── components
│ │ ├── AddSong.vue
│ │ ├── ListView.vue
│ │ └── Navbar.vue
│ ├── composables
│ │ ├── getCollection.js
│ │ ├── getDocument.js
│ │ ├── getUser.js
│ │ ├── useCollection.js
│ │ ├── useDocument.js
│ │ ├── useLogin.js
│ │ ├── useLogout.js
│ │ ├── useSignup.js
│ │ └── useStorage.js
│ ├── firebase
│ │ └── config.js
│ ├── main.js
│ ├── router
│ │ └── index.js
│ └── views
│ │ ├── Home.vue
│ │ ├── auth
│ │ ├── Login.vue
│ │ └── Signup.vue
│ │ └── playlists
│ │ ├── CreatePlayList.vue
│ │ └── PlaylistDetails.vue
│ ├── storage.rules
│ └── vue.config.js
├── 18-Vuex
└── vuex-app
│ ├── .browserslistrc
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── jsconfig.json
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── assets
│ │ └── logo.png
│ ├── components
│ │ ├── AddTodo.vue
│ │ ├── List.vue
│ │ └── todoCount.vue
│ ├── main.js
│ ├── router
│ │ └── index.js
│ ├── store
│ │ └── index.js
│ └── views
│ │ └── Home.vue
│ └── vue.config.js
├── LICENSE
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 |
18 | # Directory for instrumented libs generated by jscoverage/JSCover
19 | lib-cov
20 |
21 | # Coverage directory used by tools like istanbul
22 | coverage
23 | *.lcov
24 |
25 | # nyc test coverage
26 | .nyc_output
27 |
28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29 | .grunt
30 |
31 | # Bower dependency directory (https://bower.io/)
32 | bower_components
33 |
34 | # node-waf configuration
35 | .lock-wscript
36 |
37 | # Compiled binary addons (https://nodejs.org/api/addons.html)
38 | build/Release
39 |
40 | # Dependency directories
41 | node_modules/
42 | jspm_packages/
43 |
44 | # TypeScript v1 declaration files
45 | typings/
46 |
47 | # TypeScript cache
48 | *.tsbuildinfo
49 |
50 | # Optional npm cache directory
51 | .npm
52 |
53 | # Optional eslint cache
54 | .eslintcache
55 |
56 | # Microbundle cache
57 | .rpt2_cache/
58 | .rts2_cache_cjs/
59 | .rts2_cache_es/
60 | .rts2_cache_umd/
61 |
62 | # Optional REPL history
63 | .node_repl_history
64 |
65 | # Output of 'npm pack'
66 | *.tgz
67 |
68 | # Yarn Integrity file
69 | .yarn-integrity
70 |
71 | # dotenv environment variables file
72 | .env
73 | .env.test
74 |
75 | # parcel-bundler cache (https://parceljs.org/)
76 | .cache
77 |
78 | # Next.js build output
79 | .next
80 |
81 | # Nuxt.js build / generate output
82 | .nuxt
83 | dist
84 |
85 | # Gatsby files
86 | .cache/
87 | # Comment in the public line in if your project uses Gatsby and *not* Next.js
88 | # https://nextjs.org/blog/next-9-1#public-directory-support
89 | # public
90 |
91 | # vuepress build output
92 | .vuepress/dist
93 |
94 | # Serverless directories
95 | .serverless/
96 |
97 | # FuseBox cache
98 | .fusebox/
99 |
100 | # DynamoDB Local files
101 | .dynamodb/
102 |
103 | # TernJS port file
104 | .tern-port
105 |
--------------------------------------------------------------------------------
/01-Vue-Giris/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | VueJS Giriş
8 |
9 |
10 |
11 | Merhaba {{message}}
12 |
22 |
23 |
--------------------------------------------------------------------------------
/02-Vue-Uygulama/app.js:
--------------------------------------------------------------------------------
1 | const app = Vue.createApp({
2 | template:`
3 | Başlık: {{baslik}}
4 | İçerik: {{icerik}}
5 | Yorum Sayısı: {{yorumSayisi}}
6 | Ekle
7 | {{yazi}}
8 | `,
9 | data() {
10 | return {
11 | baslik:'Vue Dersi',
12 | icerik:'Vue 3 Konuları',
13 | yorumSayisi: 0,
14 | yazi:'Yorum eklemek için tıklayın.'
15 | }
16 | },
17 | methods: {
18 | ekle(){
19 | console.log('ekle metodu çalıştı');
20 | this.yorumSayisi++;
21 | this.yazi=`${this.yorumSayisi} tane yorum girildi.`
22 | }
23 | },
24 | });
25 |
26 | app.mount('#app')
--------------------------------------------------------------------------------
/02-Vue-Uygulama/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Vue Uygulama
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/03-V-IF-ve-V-SHOW/app.js:
--------------------------------------------------------------------------------
1 | const app = Vue.createApp({
2 | template:`
3 | Deneme Yazısı
4 | Deneme Yazısı 2
5 |
6 | Göster
7 | Gizle
8 |
9 | `,
10 | data() {
11 | return {
12 | showInfo:true
13 | }
14 | },
15 | methods: {
16 | toggle(){
17 | this.showInfo=!this.showInfo;
18 | }
19 | },
20 | });
21 |
22 | app.mount('#app')
--------------------------------------------------------------------------------
/03-V-IF-ve-V-SHOW/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Vue Uygulama
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/04-For-Loop/app.js:
--------------------------------------------------------------------------------
1 | const app = Vue.createApp({
2 | // template:`
3 | //
6 | // `,
7 | template:`
8 |
9 | Çalışan: {{person.isim}} - Maaş: {{person.maas}}
10 |
11 | `,
12 | data() {
13 | return {
14 | // gunler:["Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi","Pazar"]
15 | persons: [
16 | {isim:"Varol", maas:4250},
17 | {isim:"Seyit", maas:5250},
18 | {isim:"Elif", maas:7250}
19 | ]
20 | }
21 | },
22 | methods: {
23 |
24 | },
25 | });
26 |
27 | app.mount('#app')
--------------------------------------------------------------------------------
/04-For-Loop/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Vue Uygulama
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/05-V-Bind/app.js:
--------------------------------------------------------------------------------
1 | const app = Vue.createApp({
2 | template:`
3 | Deneme Yazısı
4 | `,
5 | data() {
6 | return {
7 | style:"color:green"
8 | }
9 | },
10 | methods: {
11 |
12 | },
13 | });
14 |
15 | app.mount('#app')
--------------------------------------------------------------------------------
/05-V-Bind/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Vue Uygulama
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/06-Uygulama-1/app.js:
--------------------------------------------------------------------------------
1 | const app = Vue.createApp({
2 | template:`
3 | Frameworkler
4 |
5 |
6 | {{f.name}}
7 |
8 |
9 | Seçilen Frameworkler
10 |
11 |
12 | {{s.name}}
13 |
14 |
15 | `,
16 | data() {
17 | return {
18 | frameworks: [
19 | {name:"Vue",selected:true},
20 | {name:"React",selected:false},
21 | {name:"Svelte",selected:false},
22 | {name:"Angular",selected:false}
23 | ]
24 | }
25 | },
26 | methods: {
27 | selectTag(f) {
28 | f.selected=!f.selected;
29 | }
30 | },
31 | computed:{
32 | selectTags() {
33 | console.log("değişik oldu");
34 | return selecteds=this.frameworks.filter(i=>i.selected)
35 | }
36 | }
37 | });
38 |
39 | app.mount('#app')
--------------------------------------------------------------------------------
/06-Uygulama-1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Vue Uygulama
8 |
9 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/README.md:
--------------------------------------------------------------------------------
1 | # vue-cli-component
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue-cli-component",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "core-js": "^3.8.3",
11 | "vue": "^3.2.13"
12 | },
13 | "devDependencies": {
14 | "@vue/cli-plugin-babel": "~5.0.0",
15 | "@vue/cli-service": "~5.0.0"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/07-Vue-CLI-Kurulumu/vue-cli-component/public/favicon.ico
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
12 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | App.vue Başlık
5 |
6 |
7 |
8 |
9 |
10 |
32 |
33 |
43 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/src/assets/css/style.css:
--------------------------------------------------------------------------------
1 | h3{
2 | color: rgb(13, 255, 0);
3 | font-size: 20px;
4 | font-weight: 400;
5 | }
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/07-Vue-CLI-Kurulumu/vue-cli-component/src/assets/logo.png
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/src/components/Button.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Temizle
4 |
5 |
6 |
7 |
21 |
22 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/src/components/Title.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{titleText}}
4 | {{text}}
5 |
6 |
7 |
8 |
18 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from 'vue'
2 | import App from './App.vue'
3 | import './assets/css/style.css'
4 |
5 | createApp(App).mount('#app')
6 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli-component/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli/README.md:
--------------------------------------------------------------------------------
1 | # vue-cli
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue-cli",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "core-js": "^3.8.3",
11 | "vue": "^3.2.13"
12 | },
13 | "devDependencies": {
14 | "@vue/cli-plugin-babel": "~5.0.0",
15 | "@vue/cli-service": "~5.0.0"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/07-Vue-CLI-Kurulumu/vue-cli/public/favicon.ico
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
12 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{title}}
4 |
5 |
6 |
Giriş
7 |
8 |
Giriş Başarılı
9 |
Giriş Başarısız
10 |
11 |
12 |
13 |
32 |
33 |
43 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/07-Vue-CLI-Kurulumu/vue-cli/src/assets/logo.png
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from 'vue'
2 | import App from './App.vue'
3 |
4 | createApp(App).mount('#app')
5 |
--------------------------------------------------------------------------------
/07-Vue-CLI-Kurulumu/vue-cli/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/08-Form-ve-Data-Binding/vue-form/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/08-Form-ve-Data-Binding/vue-form/README.md:
--------------------------------------------------------------------------------
1 | # vue-form
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/08-Form-ve-Data-Binding/vue-form/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/08-Form-ve-Data-Binding/vue-form/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/08-Form-ve-Data-Binding/vue-form/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue-form",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "core-js": "^3.8.3",
11 | "vue": "^3.2.13"
12 | },
13 | "devDependencies": {
14 | "@vue/cli-plugin-babel": "~5.0.0",
15 | "@vue/cli-service": "~5.0.0"
16 | },
17 | "browserslist": [
18 | "> 1%",
19 | "last 2 versions",
20 | "not dead",
21 | "not ie 11"
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/08-Form-ve-Data-Binding/vue-form/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/08-Form-ve-Data-Binding/vue-form/public/favicon.ico
--------------------------------------------------------------------------------
/08-Form-ve-Data-Binding/vue-form/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
12 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/08-Form-ve-Data-Binding/vue-form/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
14 |
15 |
25 |
--------------------------------------------------------------------------------
/08-Form-ve-Data-Binding/vue-form/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/08-Form-ve-Data-Binding/vue-form/src/assets/logo.png
--------------------------------------------------------------------------------
/08-Form-ve-Data-Binding/vue-form/src/components/Form.vue:
--------------------------------------------------------------------------------
1 |
2 |
38 |
39 |
40 |
70 |
71 |
--------------------------------------------------------------------------------
/08-Form-ve-Data-Binding/vue-form/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from 'vue'
2 | import App from './App.vue'
3 |
4 | createApp(App).mount('#app')
5 |
--------------------------------------------------------------------------------
/08-Form-ve-Data-Binding/vue-form/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/README.md:
--------------------------------------------------------------------------------
1 | # router-app
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "router-app",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "core-js": "^3.8.3",
11 | "vue": "^3.2.13",
12 | "vue-router": "^4.0.3"
13 | },
14 | "devDependencies": {
15 | "@vue/cli-plugin-babel": "~5.0.0",
16 | "@vue/cli-plugin-router": "~5.0.0",
17 | "@vue/cli-service": "~5.0.0"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/09-Vue-Router/router-app/public/favicon.ico
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
12 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Home |
5 | About |
6 | Students
7 |
8 |
9 | Anasayfa
10 | Geri
11 | İleri
12 |
13 |
14 |
15 |
16 |
17 |
32 |
33 |
60 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/09-Vue-Router/router-app/src/assets/logo.png
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/src/components/HelloWorld.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{ msg }}
4 |
5 | For a guide and recipes on how to configure / customize this project,
6 | check out the
7 | vue-cli documentation .
8 |
9 |
Installed CLI Plugins
10 |
14 |
Essential Links
15 |
22 |
Ecosystem
23 |
30 |
31 |
32 |
33 |
41 |
42 |
43 |
59 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from 'vue'
2 | import App from './App.vue'
3 | import router from './router'
4 |
5 | createApp(App).use(router).mount('#app')
6 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/src/router/index.js:
--------------------------------------------------------------------------------
1 | import { createRouter, createWebHistory } from 'vue-router'
2 | import HomeView from '../views/HomeView.vue'
3 |
4 | const routes = [
5 | {
6 | path: '/',
7 | name: 'home',
8 | component: HomeView
9 | },
10 | {
11 | path: '/about',
12 | name: 'about',
13 | // route level code-splitting
14 | // this generates a separate chunk (about.[hash].js) for this route
15 | // which is lazy-loaded when the route is visited.
16 | component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
17 | },
18 | {
19 | path: '/students',
20 | name: 'students',
21 | component: () => import('../views/Students.vue')
22 | },
23 | {
24 | path: '/students/:id',
25 | name: 'studentInfo',
26 | component: () => import('../views/StudentInfo.vue'),
27 | props:true
28 | },
29 | {
30 | path: '/student',
31 | redirect:'/students'
32 | },
33 | {
34 | path: '/:catchAll(.*)',
35 | name: 'notFound',
36 | component: () => import('../views/NotFound.vue')
37 | }
38 | ]
39 |
40 | const router = createRouter({
41 | history: createWebHistory(process.env.BASE_URL),
42 | routes
43 | })
44 |
45 | export default router
46 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/src/views/AboutView.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
This is an about page
4 |
5 |
6 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/src/views/HomeView.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
19 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/src/views/NotFound.vue:
--------------------------------------------------------------------------------
1 |
2 | Sayfa Bulunamadı!
3 |
4 |
5 |
10 |
11 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/src/views/StudentInfo.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Öğrenci Bilgi Sayfası
4 |
Öğrenci ID: {{id}}
5 |
6 |
7 |
8 |
13 |
14 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/src/views/Students.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Öğrenciler
4 |
5 | {{student.name}}
6 |
7 |
8 |
9 |
10 |
23 |
24 |
--------------------------------------------------------------------------------
/09-Vue-Router/router-app/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/README.md:
--------------------------------------------------------------------------------
1 | # components
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "components",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "core-js": "^3.8.3",
11 | "vue": "^3.2.13"
12 | },
13 | "devDependencies": {
14 | "@vue/cli-plugin-babel": "~5.0.0",
15 | "@vue/cli-service": "~5.0.0"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/10-Gelismis-Component/components/public/favicon.ico
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
12 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Bu bir deneme başlığı
5 |
6 |
7 |
8 |
9 |
19 |
20 |
30 |
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/10-Gelismis-Component/components/src/assets/logo.png
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/src/components/Header.vue:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
43 |
44 |
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from 'vue'
2 | import App from './App.vue'
3 |
4 |
5 | createApp(App).mount('#app')
6 |
--------------------------------------------------------------------------------
/10-Gelismis-Component/components/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/README.md:
--------------------------------------------------------------------------------
1 | # project-planner
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/data/db.json:
--------------------------------------------------------------------------------
1 | {
2 | "projects": [
3 | {
4 | "id": 1,
5 | "title": "Deneme 0",
6 | "details": "Lorem Ipsum is simply Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. aaaaaaaaaaaa",
7 | "complete": true
8 | },
9 | {
10 | "id": 2,
11 | "title": "Deneme 2",
12 | "details": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
13 | "complete": false
14 | },
15 | {
16 | "id": 3,
17 | "title": "Deneme 3",
18 | "details": "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
19 | "complete": true
20 | },
21 | {
22 | "id": 4,
23 | "title": "Deneme 4",
24 | "details": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.",
25 | "complete": false
26 | },
27 | {
28 | "title": "Deneme 5",
29 | "details": "asfasdf gsdg erhdshs thfsgh",
30 | "complete": true,
31 | "id": 5
32 | },
33 | {
34 | "title": "Deneme 7",
35 | "details": "fdgdfg dfhfdgh sfdhsh srthsfhg",
36 | "complete": false,
37 | "id": 6
38 | }
39 | ]
40 | }
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "project-planner",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "core-js": "^3.8.3",
11 | "vue": "^3.2.13",
12 | "vue-router": "^4.0.3"
13 | },
14 | "devDependencies": {
15 | "@vue/cli-plugin-babel": "~5.0.0",
16 | "@vue/cli-plugin-router": "~5.0.0",
17 | "@vue/cli-service": "~5.0.0"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/11-Planner-Uygulama-2/project-planner/public/favicon.ico
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 | <%= htmlWebpackPlugin.options.title %>
13 |
14 |
15 |
16 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
18 | properly without JavaScript enabled. Please enable it to
19 | continue.
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
14 |
15 |
28 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/11-Planner-Uygulama-2/project-planner/src/assets/logo.png
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/src/components/FilterNav.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | All
5 |
6 |
10 | Complated
11 |
12 |
16 | Ongoing
17 |
18 |
19 |
20 |
21 |
31 |
32 |
49 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/src/components/Navbar.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | Projects
4 | Add New Project
5 |
6 |
7 |
8 |
11 |
12 |
30 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/src/components/SingleProject.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
{{ project.title }}
5 |
6 | edit
9 | delete
10 | done
11 |
12 |
13 |
14 |
{{ project.details }}
15 |
16 |
17 |
18 |
19 |
46 |
47 |
80 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from 'vue'
2 | import App from './App.vue'
3 | import router from './router'
4 |
5 | createApp(App).use(router).mount('#app')
6 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/src/router/index.js:
--------------------------------------------------------------------------------
1 | import { createRouter, createWebHistory } from 'vue-router'
2 | import Home from '../views/Home.vue'
3 |
4 | const routes = [
5 | {
6 | path: '/',
7 | name: 'Home',
8 | component: Home
9 | },
10 | {
11 | path: '/add',
12 | name: 'AddProject',
13 | component: () => import('../views/AddProject.vue')
14 | },
15 | {
16 | path: '/projects/:id',
17 | name: 'EditProject',
18 | component: () => import('../views/EditProject.vue'),
19 | props: true
20 | }
21 | ]
22 |
23 | const router = createRouter({
24 | history: createWebHistory(process.env.BASE_URL),
25 | routes
26 | })
27 |
28 | export default router
29 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/src/views/AddProject.vue:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
37 |
38 |
78 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/src/views/EditProject.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | Title:
4 |
5 | Details:
6 |
7 | Update Project
8 |
9 |
10 |
11 |
42 |
43 |
83 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/src/views/Home.vue:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
16 |
56 |
--------------------------------------------------------------------------------
/11-Planner-Uygulama-2/project-planner/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/README.md:
--------------------------------------------------------------------------------
1 | # composition-api
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "composition-api",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "core-js": "^3.8.3",
11 | "vue": "^3.2.13",
12 | "vue-router": "^4.0.3"
13 | },
14 | "devDependencies": {
15 | "@vue/cli-plugin-babel": "~5.0.0",
16 | "@vue/cli-plugin-router": "~5.0.0",
17 | "@vue/cli-service": "~5.0.0"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/12-CompositionAPI/composition-api/public/favicon.ico
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
12 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Home |
5 | About
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
35 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/12-CompositionAPI/composition-api/src/assets/logo.png
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/src/components/Contents.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{ content.title }}
5 |
6 |
7 | {{ err }}
8 |
9 |
10 |
11 |
12 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/src/composables/getContentsFetch.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 |
3 | const getContentsFetch = () => {
4 | const contents = ref([]);
5 | const err = ref(null);
6 | const getContents = async () => {
7 | try {
8 | let data = await fetch("https://jsonplaceholder.typicode.com/posts");
9 | contents.value = await data.json();
10 |
11 | if (!data.ok) {
12 | throw new Error("Verilere Erişilemedi!");
13 | }
14 | } catch (error) {
15 | err.value = error.message;
16 | }
17 | };
18 | return { contents, err, getContents };
19 | };
20 |
21 | export default getContentsFetch;
22 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from 'vue'
2 | import App from './App.vue'
3 | import router from './router'
4 |
5 | createApp(App).use(router).mount('#app')
6 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/src/router/index.js:
--------------------------------------------------------------------------------
1 | import { createRouter, createWebHistory } from "vue-router";
2 | import HomeView from "../views/HomeView.vue";
3 |
4 | const routes = [
5 | {
6 | path: "/",
7 | name: "home",
8 | component: HomeView,
9 | },
10 | {
11 | path: "/about",
12 | name: "about",
13 |
14 | component: () => import("../views/AboutView.vue"),
15 | },
16 | ];
17 |
18 | const router = createRouter({
19 | history: createWebHistory(process.env.BASE_URL),
20 | routes,
21 | });
22 |
23 | export default router;
24 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/src/views/AboutView.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
This is an about page
4 |
5 |
6 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/src/views/HomeView.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
24 |
--------------------------------------------------------------------------------
/12-CompositionAPI/composition-api/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/README.md:
--------------------------------------------------------------------------------
1 | # todo
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "todo",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "bulma": "^0.9.4",
11 | "core-js": "^3.8.3",
12 | "vue": "^3.2.13",
13 | "vue-router": "^4.0.3"
14 | },
15 | "devDependencies": {
16 | "@vue/cli-plugin-babel": "~5.0.0",
17 | "@vue/cli-plugin-router": "~5.0.0",
18 | "@vue/cli-service": "~5.0.0"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/13-ToDo-Uyguama-3/todo/public/favicon.ico
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
12 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Todo App
4 |
5 |
15 | Ekle
16 |
17 |
34 |
35 |
36 |
37 |
60 |
61 |
91 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/13-ToDo-Uyguama-3/todo/src/assets/logo.png
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/src/components/HelloWorld.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{ msg }}
4 |
5 | For a guide and recipes on how to configure / customize this project,
6 | check out the
7 | vue-cli documentation .
8 |
9 |
Installed CLI Plugins
10 |
14 |
Essential Links
15 |
22 |
Ecosystem
23 |
30 |
31 |
32 |
33 |
41 |
42 |
43 |
59 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from "vue";
2 | import App from "./App.vue";
3 | import router from "./router";
4 | import "../node_modules/bulma/css/bulma.css";
5 |
6 | createApp(App).use(router).mount("#app");
7 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/src/router/index.js:
--------------------------------------------------------------------------------
1 | import { createRouter, createWebHistory } from 'vue-router'
2 | import HomeView from '../views/HomeView.vue'
3 |
4 | const routes = [
5 | {
6 | path: '/',
7 | name: 'home',
8 | component: HomeView
9 | },
10 | {
11 | path: '/about',
12 | name: 'about',
13 | // route level code-splitting
14 | // this generates a separate chunk (about.[hash].js) for this route
15 | // which is lazy-loaded when the route is visited.
16 | component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
17 | }
18 | ]
19 |
20 | const router = createRouter({
21 | history: createWebHistory(process.env.BASE_URL),
22 | routes
23 | })
24 |
25 | export default router
26 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/src/views/AboutView.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
This is an about page
4 |
5 |
6 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/src/views/HomeView.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
19 |
--------------------------------------------------------------------------------
/13-ToDo-Uyguama-3/todo/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/README.md:
--------------------------------------------------------------------------------
1 | # fb-app
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "fb-app",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "core-js": "^3.8.3",
11 | "firebase": "^9.8.3",
12 | "vue": "^3.2.13",
13 | "vue-router": "^4.0.3"
14 | },
15 | "devDependencies": {
16 | "@vue/cli-plugin-babel": "~5.0.0",
17 | "@vue/cli-plugin-router": "~5.0.0",
18 | "@vue/cli-service": "~5.0.0"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/14-Firebase-Vue/fb-app/public/favicon.ico
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
12 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | Home |
4 | About
5 |
6 |
7 |
8 |
9 |
31 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/14-Firebase-Vue/fb-app/src/assets/logo.png
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/src/components/HelloWorld.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{ msg }}
4 |
5 | For a guide and recipes on how to configure / customize this project,
6 | check out the
7 | vue-cli documentation .
8 |
9 |
Installed CLI Plugins
10 |
14 |
Essential Links
15 |
22 |
Ecosystem
23 |
30 |
31 |
32 |
33 |
41 |
42 |
43 |
59 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/src/firebase/config.js:
--------------------------------------------------------------------------------
1 | import { initializeApp } from "firebase/app";
2 |
3 | const firebaseConfig = {
4 | apiKey: "AIzaSyCF6oGOYlfht_fhaaQbwjtHNm5yqFiLwxc",
5 | authDomain: "vue3-8ecd0.firebaseapp.com",
6 | projectId: "vue3-8ecd0",
7 | storageBucket: "vue3-8ecd0.appspot.com",
8 | messagingSenderId: "588853687474",
9 | appId: "1:588853687474:web:2ae353c3a191c8c42f05ab",
10 | };
11 |
12 | const fb = initializeApp(firebaseConfig);
13 |
14 | export { fb };
15 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from 'vue'
2 | import App from './App.vue'
3 | import router from './router'
4 |
5 | createApp(App).use(router).mount('#app')
6 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/src/router/index.js:
--------------------------------------------------------------------------------
1 | import { createRouter, createWebHistory } from 'vue-router'
2 | import HomeView from '../views/HomeView.vue'
3 |
4 | const routes = [
5 | {
6 | path: '/',
7 | name: 'home',
8 | component: HomeView
9 | },
10 | {
11 | path: '/about',
12 | name: 'about',
13 | // route level code-splitting
14 | // this generates a separate chunk (about.[hash].js) for this route
15 | // which is lazy-loaded when the route is visited.
16 | component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
17 | }
18 | ]
19 |
20 | const router = createRouter({
21 | history: createWebHistory(process.env.BASE_URL),
22 | routes
23 | })
24 |
25 | export default router
26 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/src/views/AboutView.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
This is an about page
4 |
5 |
6 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/src/views/HomeView.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Firebase
4 |
5 |
6 |
7 |
60 |
--------------------------------------------------------------------------------
/14-Firebase-Vue/fb-app/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/README.md:
--------------------------------------------------------------------------------
1 | # project-planner
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "blog",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "core-js": "^3.8.3",
11 | "firebase": "^9.8.3",
12 | "vue": "^3.2.13",
13 | "vue-router": "^4.0.3"
14 | },
15 | "devDependencies": {
16 | "@vue/cli-plugin-babel": "~5.0.0",
17 | "@vue/cli-plugin-router": "~5.0.0",
18 | "@vue/cli-service": "~5.0.0"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/15-Blog-Uygulama-4/blog/public/favicon.ico
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 | <%= htmlWebpackPlugin.options.title %>
13 |
14 |
15 |
16 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
18 | properly without JavaScript enabled. Please enable it to
19 | continue.
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
14 |
15 |
28 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/15-Blog-Uygulama-4/blog/src/assets/logo.png
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/src/components/Navbar.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | Blog
4 | Add New Post
5 |
6 |
7 |
8 |
11 |
12 |
30 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/src/components/SinglePost.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{ post.title }}
6 |
7 |
8 |
9 |
10 |
11 |
17 |
18 |
45 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/src/composables/getPosts.js:
--------------------------------------------------------------------------------
1 | import { async } from "@firebase/util";
2 | import { ref } from "vue";
3 | import { getFirestore, collection, getDocs } from "firebase/firestore/lite";
4 | import { fb } from "../firebase/config";
5 |
6 | const getPosts = async () => {
7 | const db = getFirestore();
8 | const fbRef = collection(db, "posts");
9 | const fbDocs = await getDocs(fbRef);
10 | const data = fbDocs.docs.map((doc) => doc.data());
11 | return data;
12 | };
13 |
14 | export default getPosts;
15 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/src/firebase/config.js:
--------------------------------------------------------------------------------
1 | import { initializeApp } from "firebase/app";
2 |
3 | const firebaseConfig = {
4 | apiKey: "AIzaSyAXmd4nqQ5viGD0U3-qL8DXVv_pnN_rIWo",
5 | authDomain: "blog-vue3-764e3.firebaseapp.com",
6 | projectId: "blog-vue3-764e3",
7 | storageBucket: "blog-vue3-764e3.appspot.com",
8 | messagingSenderId: "899353647716",
9 | appId: "1:899353647716:web:855eea159f0990b977dd71",
10 | };
11 |
12 | const fb = initializeApp(firebaseConfig);
13 |
14 | export { fb };
15 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from 'vue'
2 | import App from './App.vue'
3 | import router from './router'
4 |
5 | createApp(App).use(router).mount('#app')
6 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/src/router/index.js:
--------------------------------------------------------------------------------
1 | import { createRouter, createWebHistory } from "vue-router";
2 | import Home from "../views/Home.vue";
3 |
4 | const routes = [
5 | {
6 | path: "/",
7 | name: "Home",
8 | component: Home,
9 | },
10 | {
11 | path: "/add",
12 | name: "AddPost",
13 | component: () => import("../views/AddPost.vue"),
14 | },
15 | {
16 | path: "/posts/:id",
17 | name: "Post",
18 | component: () => import("../views/Post.vue"),
19 | props: true,
20 | },
21 | ];
22 |
23 | const router = createRouter({
24 | history: createWebHistory(process.env.BASE_URL),
25 | routes,
26 | });
27 |
28 | export default router;
29 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/src/views/AddPost.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | Title:
4 |
5 | Content:
6 |
7 | Add Post
8 |
9 |
10 |
11 |
41 |
42 |
82 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/src/views/Home.vue:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
25 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/src/views/Post.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{ post.title }}
5 |
6 |
7 |
{{ post.content }}
8 |
9 |
10 |
11 |
12 |
26 |
27 |
37 |
--------------------------------------------------------------------------------
/15-Blog-Uygulama-4/blog/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/README.md:
--------------------------------------------------------------------------------
1 | # chat-app
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "chat-app",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "core-js": "^3.8.3",
11 | "date-fns": "^2.28.0",
12 | "firebase": "^8.10.1",
13 | "vue": "^3.2.13",
14 | "vue-router": "^4.0.3"
15 | },
16 | "devDependencies": {
17 | "@vue/cli-plugin-babel": "~5.0.0",
18 | "@vue/cli-plugin-router": "~5.0.0",
19 | "@vue/cli-service": "~5.0.0"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/16-ChatApp-Uygulama-5/chat-app/public/favicon.ico
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
12 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
29 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/16-ChatApp-Uygulama-5/chat-app/src/assets/logo.png
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/assets/main.css:
--------------------------------------------------------------------------------
1 | body {
2 | background: #e3e1ff;
3 | color: #444;
4 | }
5 | .container {
6 | width: 90%;
7 | max-width: 960px;
8 | margin: 80px auto;
9 | border-radius: 20px;
10 | box-shadow: 2px 4px 6px rgba(28,6,49,0.1);
11 | }
12 | .error {
13 | color: #9c3333;
14 | font-size: 14px;
15 | }
16 | button {
17 | text-decoration: none;
18 | background: #33a464;
19 | color: #fff;
20 | font-weight: bold;
21 | border: 0;
22 | border-radius: 20px;
23 | padding: 10px 20px;
24 | }
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/components/ChatWindow.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{ error }}
4 |
5 |
6 | {{ doc.createdAt }}
7 | {{ doc.name }}
8 | {{ doc.message }}
9 |
10 |
11 |
12 |
13 |
14 |
38 |
39 |
63 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/components/LoginForm.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{ error }}
6 | Login
7 |
8 |
9 |
10 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/components/Navbar.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
Hi {{ user.displayName }}
5 |
Curently logged in as {{ user.email }}
6 |
7 | Logout
8 |
9 |
10 |
11 |
28 |
29 |
51 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/components/NewChatForm.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 | {{ error }}
9 |
10 |
11 |
12 |
38 |
39 |
55 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/components/SignupForm.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 | {{ error }}
12 | Signup
13 |
14 |
15 |
16 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/composables/getCollection.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectFirestore } from "../firebase/config";
3 |
4 | const getCollection = (collection) => {
5 | const documents = ref(null);
6 | const error = ref(null);
7 |
8 | let collectionRef = projectFirestore
9 | .collection(collection)
10 | .orderBy("createdAt");
11 |
12 | collectionRef.onSnapshot(
13 | (snap) => {
14 | let result = [];
15 | snap.docs.forEach((doc) => {
16 | doc.data().createdAt && result.push({ ...doc.data(), id: doc.id });
17 | });
18 | documents.value = result;
19 | error.value = null;
20 | },
21 | (err) => {
22 | console.log(err.message);
23 | documents.value = null;
24 | error.value = "could not fetch data";
25 | }
26 | );
27 | return { documents, error };
28 | };
29 |
30 | export default getCollection;
31 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/composables/getUser.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectAuth } from "../firebase/config";
3 |
4 | const user = ref(projectAuth.currentUser);
5 |
6 | projectAuth.onAuthStateChanged((_user) => {
7 | user.value = _user;
8 | });
9 |
10 | const getUser = () => {
11 | return { user };
12 | };
13 |
14 | export default getUser;
15 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/composables/useCollection.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectFirestore } from "../firebase/config";
3 |
4 | const useCollection = (collection) => {
5 | const error = ref(null);
6 | const addDoc = async (doc) => {
7 | error.value = null;
8 |
9 | try {
10 | await projectFirestore.collection(collection).add(doc);
11 | } catch (err) {
12 | console.log(err.message);
13 | error.value = "could not send the message";
14 | }
15 | };
16 | return { error, addDoc };
17 | };
18 |
19 | export default useCollection;
20 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/composables/useLogin.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectAuth } from "../firebase/config";
3 |
4 | const error = ref(null);
5 |
6 | const login = async (email, password) => {
7 | error.value = null;
8 |
9 | try {
10 | const res = await projectAuth.signInWithEmailAndPassword(email, password);
11 | error.value = null;
12 | return res;
13 | } catch (err) {
14 | console.log(err.value);
15 | error.value = "Incorrect login credentials";
16 | }
17 | };
18 |
19 | const useLogin = () => {
20 | return { error, login };
21 | };
22 |
23 | export default useLogin;
24 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/composables/useLogout.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectAuth } from "../firebase/config";
3 |
4 | const error = ref(null);
5 |
6 | const logout = async () => {
7 | error.value = null;
8 |
9 | try {
10 | await projectAuth.signOut();
11 | } catch (err) {
12 | console.log(err.message);
13 | error.value = err.message;
14 | }
15 | };
16 |
17 | const useLogout = () => {
18 | return { logout, error };
19 | };
20 |
21 | export default useLogout;
22 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/composables/useSignup.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectAuth } from "../firebase/config";
3 |
4 | const error = ref(null);
5 | const signup = async (email, password, displayName) => {
6 | error.value = null;
7 | try {
8 | const res = await projectAuth.createUserWithEmailAndPassword(
9 | email,
10 | password
11 | );
12 | if (!res) {
13 | throw new Error("Could not complete the signup!");
14 | }
15 | await res.user.updateProfile({ displayName });
16 | error.value = null;
17 | return res;
18 | } catch (err) {
19 | console.log(err.message);
20 | error.value = err.message;
21 | }
22 | };
23 |
24 | const useSignup = () => {
25 | return { error, signup };
26 | };
27 |
28 | export default useSignup;
29 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/firebase/config.js:
--------------------------------------------------------------------------------
1 | import firebase from "firebase/app";
2 | import "firebase/firestore";
3 | import "firebase/auth";
4 |
5 | const firebaseConfig = {
6 | apiKey: "AIzaSyAXmd4nqQ5viGD0U3-qL8DXVv_pnN_rIWo",
7 | authDomain: "blog-vue3-764e3.firebaseapp.com",
8 | projectId: "blog-vue3-764e3",
9 | storageBucket: "blog-vue3-764e3.appspot.com",
10 | messagingSenderId: "899353647716",
11 | appId: "1:899353647716:web:a7f0ebb5fa86804b77dd71",
12 | };
13 |
14 | firebase.initializeApp(firebaseConfig);
15 |
16 | const projectAuth = firebase.auth();
17 | const projectFirestore = firebase.firestore();
18 | const timestamp = firebase.firestore.FieldValue.serverTimestamp;
19 |
20 | export { projectAuth, projectFirestore, timestamp };
21 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from "vue";
2 | import App from "./App.vue";
3 | import router from "./router";
4 | import "./assets/main.css";
5 | import { projectAuth } from "./firebase/config";
6 |
7 | let app;
8 |
9 | projectAuth.onAuthStateChanged(() => {
10 | if (!app) {
11 | app = createApp(App).use(router).mount("#app");
12 | }
13 | });
14 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/router/index.js:
--------------------------------------------------------------------------------
1 | import { createRouter, createWebHistory } from "vue-router";
2 | import Welcome from "../views/Welcome.vue";
3 | import { projectAuth } from "../firebase/config";
4 |
5 | const requireAuth = (to, from, next) => {
6 | let user = projectAuth.currentUser;
7 | if (!user) {
8 | next({ name: "welcome" });
9 | } else {
10 | next();
11 | }
12 | };
13 | const requireNoAuth = (to, from, next) => {
14 | let user = projectAuth.currentUser;
15 | if (user) {
16 | next({ name: "chatroom" });
17 | } else {
18 | next();
19 | }
20 | };
21 |
22 | const routes = [
23 | {
24 | path: "/",
25 | name: "welcome",
26 | component: Welcome,
27 | beforeEnter: requireNoAuth,
28 | },
29 | {
30 | path: "/chatroom",
31 | name: "chatroom",
32 | component: () => import("../views/Chatroom.vue"),
33 | beforeEnter: requireAuth,
34 | },
35 | ];
36 |
37 | const router = createRouter({
38 | history: createWebHistory(process.env.BASE_URL),
39 | routes,
40 | });
41 |
42 | export default router;
43 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/views/Chatroom.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/src/views/Welcome.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Welcome
4 |
5 |
Login
6 |
7 |
No account yet? Signup
8 |
9 |
10 |
Signup
11 |
12 |
Already registered? Login
13 |
14 |
15 |
16 |
17 |
35 |
36 |
67 |
--------------------------------------------------------------------------------
/16-ChatApp-Uygulama-5/chat-app/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/.firebase/hosting.ZGlzdA.cache:
--------------------------------------------------------------------------------
1 | index.html,1655778015582,754cf4a9359abd3b38242665afca22fb8e75b0bf7199df41d72d173e89c71e03
2 | css/384.d33a3e9a.css,1655778015570,b9990151e215fba6ebab434406d7e1f9f14a7fc9638ed97684c51835b79e9437
3 | css/137.ffdbc17f.css,1655778015570,59ec1b05b5c4f09cac316649f0e4ecb420c232e9388945a5ed6110d74d0c8672
4 | css/app.9b4efa91.css,1655778015570,7e3a8e2e5e35fda5bd4cbb247d26b2c2d2458a09e73931c02ca601400c7b63d3
5 | favicon.ico,1655778015570,d5451f0f0f0bcbcd433bbdf4f6e7e5d89d8ecce2650649e969ccb5e5cd499ab2
6 | js/137.bc49d7e4.js,1655778015570,9f224740e946430f1091ef77dd1a58181bc91f7a66f9abc1a75df4cf49be9a43
7 | js/384.9a834c61.js,1655778015570,04630e2e18b96be550de1b6465ee7f28b9062fb5a09f3ab7a21b143c070f793c
8 | img/logo.c3c97928.png,1655778015570,77720a4f8f754a746c27e8c77e6e93b06c9470fbd04659f07f8ddd5667591fcf
9 | js/432.c1f35a51.js,1655778015570,f35f45bc4b9030d9e057280767f38997c381ed5cdf5bdf879c85b147ab809ee9
10 | js/432.c1f35a51.js.map,1655778015570,d0efa4ceff1f7fd11c0989674cc70e30d254cbbac8bdd02d5382d75bde35f433
11 | js/596.92baf43e.js,1655778015570,207cd5a29a446605f4f2bcc54b97aaf45fbde69bc4ee436e86b215acb182b708
12 | js/384.9a834c61.js.map,1655778015571,0b59cea525ad07cbbe395eb91d6da0dd857f00be7a581669582122694ea5fb10
13 | js/596.92baf43e.js.map,1655778015570,e6f158a349c72eea8c9f74e861d971d7ad25f2d8e3e2bdf643175f78f77b47d4
14 | js/137.bc49d7e4.js.map,1655778015582,47b20014159f0eacc8912d3407421f2689d77d117a6d71f84a6c135836240a20
15 | js/app.9d8cb1aa.js,1655778015570,d39a393bd3cedcb0fc6c840f6d16623f19f3ab10dddf47cc265964772a534ae5
16 | js/app.9d8cb1aa.js.map,1655778015570,4b05e579cec460a65734693cc2b723c65a4878847e947be523cb2ff925072ddd
17 | js/chunk-vendors.3f4bd6dd.js,1655778015570,cfe4989cb6b9e71455b8d433a843fa826d0be0a326f1c9da2696ab327d7e4bf2
18 | js/chunk-vendors.3f4bd6dd.js.map,1655778015583,00f9784811ab6bde39f1d1219c49961b4d3e8687f8682e16f0bc4780681ae484
19 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/.firebaserc:
--------------------------------------------------------------------------------
1 | {
2 | "projects": {
3 | "default": "playlist-vue-9482a"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/README.md:
--------------------------------------------------------------------------------
1 | # playlist-app
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/firebase.json:
--------------------------------------------------------------------------------
1 | {
2 | "firestore": {
3 | "rules": "firestore.rules",
4 | "indexes": "firestore.indexes.json"
5 | },
6 | "hosting": {
7 | "public": "dist",
8 | "ignore": [
9 | "firebase.json",
10 | "**/.*",
11 | "**/node_modules/**"
12 | ],
13 | "rewrites": [
14 | {
15 | "source": "**",
16 | "destination": "/index.html"
17 | }
18 | ]
19 | },
20 | "storage": {
21 | "rules": "storage.rules"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/firestore.indexes.json:
--------------------------------------------------------------------------------
1 | {
2 | "indexes": [],
3 | "fieldOverrides": []
4 | }
5 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/firestore.rules:
--------------------------------------------------------------------------------
1 | rules_version = '2';
2 | service cloud.firestore {
3 | match /databases/{database}/documents {
4 | match /playlists/{docId} {
5 | allow read, create: if request.auth != null;
6 | allow delete, update: if request.auth.uid == resource.data.userId;
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "playlist-app",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "core-js": "^3.8.3",
11 | "firebase": "^8.10.1",
12 | "vue": "^3.2.13",
13 | "vue-router": "^4.0.3"
14 | },
15 | "devDependencies": {
16 | "@vue/cli-plugin-babel": "~5.0.0",
17 | "@vue/cli-plugin-router": "~5.0.0",
18 | "@vue/cli-service": "~5.0.0"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/17-Playlist-Uygulama-6/playlist-app/public/favicon.ico
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
12 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
17 |
18 |
25 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/17-Playlist-Uygulama-6/playlist-app/src/assets/logo.png
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/assets/main.css:
--------------------------------------------------------------------------------
1 | /* custom font */
2 | @import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700;800;900&display=swap');
3 |
4 | /* variables */
5 | :root {
6 | --primary: #4f515a;
7 | --secondary: #e0e0e0;
8 | --warning: #da0f41;
9 | }
10 |
11 | /* base styles */
12 | * {
13 | margin: 0;
14 | padding: 0;
15 | font-family: 'Nunito', sans-serif;
16 | color: var(--primary);
17 | }
18 | body {
19 | background: #fafafa;
20 | }
21 | a {
22 | text-decoration: none;
23 | }
24 |
25 | /* buttons */
26 | button, .btn {
27 | background: var(--secondary);
28 | border-radius: 8px;
29 | border: 0;
30 | padding: 8px 12px;
31 | font-weight: 600;
32 | cursor: pointer;
33 | display: inline-block;
34 | }
35 | button:hover, .btn:hover {
36 | background: var(--primary);
37 | color: white;
38 | }
39 | button:disabled {
40 | opacity: 0.5;
41 | color: var(--primary);
42 | background: var(--secondary);
43 | cursor: not-allowed;
44 | }
45 |
46 | /* forms */
47 | form {
48 | max-width: 400px;
49 | margin: 0 auto;
50 | padding: 30px;
51 | border-radius: 8px;
52 | box-shadow: 1px 2px 3px rgba(50,50,50,0.05);
53 | border: 1px solid var(--secondary);
54 | background: white;
55 | }
56 | input, textarea {
57 | border: 0;
58 | border-bottom: 1px solid var(--secondary);
59 | padding: 10px;
60 | outline: none;
61 | display: block;
62 | width: 100%;
63 | box-sizing: border-box;
64 | margin: 20px auto;
65 | }
66 |
67 | /* error text */
68 | .error {
69 | color: var(--warning);
70 | font-size: 14px;
71 | margin: 16px 0;
72 | }
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/components/AddSong.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | Add Song
4 |
5 | Add a New Song
6 |
7 |
8 | Add
9 |
10 |
11 |
12 |
13 |
41 |
42 |
52 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/components/ListView.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
10 |
11 |
12 |
{{ playlist.title }}
13 |
Created by {{ playlist.userName }}
14 |
15 |
16 |
{{ playlist.songs.length }}
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
29 |
30 |
63 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/components/Navbar.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 | PlayList
8 |
9 |
10 | Hi, {{ user.displayName }}
11 | Create Playlist
14 | Logout
15 |
16 |
17 | Signup
18 | Login
19 |
20 |
21 |
22 |
23 |
24 |
25 |
45 |
46 |
80 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/composables/getCollection.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectFirestore } from "../firebase/config";
3 |
4 | const getCollection = (collection) => {
5 | const documents = ref(null);
6 | const error = ref(null);
7 |
8 | let collectionRef = projectFirestore
9 | .collection(collection)
10 | .orderBy("createdAt");
11 |
12 | collectionRef.onSnapshot(
13 | (snap) => {
14 | let result = [];
15 | snap.docs.forEach((doc) => {
16 | doc.data().createdAt && result.push({ ...doc.data(), id: doc.id });
17 | });
18 | documents.value = result;
19 | error.value = null;
20 | },
21 | (err) => {
22 | console.log(err.message);
23 | documents.value = null;
24 | error.value = "could not fetch data";
25 | }
26 | );
27 | return { documents, error };
28 | };
29 |
30 | export default getCollection;
31 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/composables/getDocument.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectFirestore } from "../firebase/config";
3 |
4 | const getDocument = (collection, id) => {
5 | const document = ref(null);
6 | const error = ref(null);
7 |
8 | let documentRef = projectFirestore.collection(collection).doc(id);
9 |
10 | documentRef.onSnapshot(
11 | (doc) => {
12 | if (doc.data()) {
13 | document.value = { ...doc.data(), id: doc.id };
14 | error.value = null;
15 | } else {
16 | error.value = "document not found";
17 | }
18 | },
19 | (err) => {
20 | console.log(err.message);
21 | error.value = "could not fetch data";
22 | }
23 | );
24 | return { document, error };
25 | };
26 |
27 | export default getDocument;
28 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/composables/getUser.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectAuth } from "../firebase/config";
3 |
4 | const user = ref(projectAuth.currentUser);
5 |
6 | projectAuth.onAuthStateChanged((_user) => {
7 | user.value = _user;
8 | });
9 |
10 | const getUser = () => {
11 | return { user };
12 | };
13 |
14 | export default getUser;
15 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/composables/useCollection.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectFirestore } from "../firebase/config";
3 |
4 | const useCollection = (collection) => {
5 | const error = ref(null);
6 | const isPenging = ref(false);
7 |
8 | const addDoc = async (doc) => {
9 | error.value = null;
10 | isPenging.value = true;
11 | try {
12 | const res = await projectFirestore.collection(collection).add(doc);
13 | isPenging.value = false;
14 | return res;
15 | } catch (err) {
16 | console.log(err.message);
17 | error.value = "could not send the message";
18 | isPenging.value = false;
19 | }
20 | };
21 | return { error, addDoc, isPenging };
22 | };
23 |
24 | export default useCollection;
25 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/composables/useDocument.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectFirestore } from "../firebase/config";
3 |
4 | const useDocument = (collection, id) => {
5 | let error = ref(null);
6 | let isPending = ref(false);
7 | let docRef = projectFirestore.collection(collection).doc(id);
8 |
9 | const deleteDoc = async () => {
10 | isPending.value = true;
11 | error.value = null;
12 | try {
13 | const res = await docRef.delete();
14 | isPending.value = false;
15 | return res;
16 | } catch (err) {
17 | console.log(err.message);
18 | isPending.value = false;
19 | error.value = "could not delete the document";
20 | }
21 | };
22 |
23 | const updateDoc = async (updates) => {
24 | isPending.value = true;
25 | error.value = null;
26 | try {
27 | const res = await docRef.update(updates);
28 | isPending.value = false;
29 | return res;
30 | } catch (err) {
31 | console.log(err.message);
32 | isPending.value = false;
33 | error.value = "could not update the document";
34 | }
35 | };
36 |
37 | return { error, isPending, deleteDoc, updateDoc };
38 | };
39 |
40 | export default useDocument;
41 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/composables/useLogin.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectAuth } from "../firebase/config";
3 |
4 | const error = ref(null);
5 | const isPenging = ref(false);
6 |
7 | const login = async (email, password) => {
8 | error.value = null;
9 | isPenging.value = true;
10 | try {
11 | const res = await projectAuth.signInWithEmailAndPassword(email, password);
12 | error.value = null;
13 | isPenging.value = false;
14 | return res;
15 | } catch (err) {
16 | console.log(err.value);
17 | error.value = "Incorrect login credentials";
18 | isPenging.value = false;
19 | }
20 | };
21 |
22 | const useLogin = () => {
23 | return { error, login, isPenging };
24 | };
25 |
26 | export default useLogin;
27 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/composables/useLogout.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectAuth } from "../firebase/config";
3 |
4 | const error = ref(null);
5 | const isPenging = ref(false);
6 |
7 | const logout = async () => {
8 | error.value = null;
9 | isPenging.value = true;
10 |
11 | try {
12 | await projectAuth.signOut();
13 | isPenging.value = false;
14 | } catch (err) {
15 | console.log(err.message);
16 | error.value = err.message;
17 | isPenging.value = false;
18 | }
19 | };
20 |
21 | const useLogout = () => {
22 | return { logout, error, isPenging };
23 | };
24 |
25 | export default useLogout;
26 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/composables/useSignup.js:
--------------------------------------------------------------------------------
1 | import { ref } from "vue";
2 | import { projectAuth } from "../firebase/config";
3 |
4 | const error = ref(null);
5 | const isPenging = ref(false);
6 | const signup = async (email, password, displayName) => {
7 | error.value = null;
8 | isPenging.value = true;
9 | try {
10 | const res = await projectAuth.createUserWithEmailAndPassword(
11 | email,
12 | password
13 | );
14 | if (!res) {
15 | throw new Error("Could not complete the signup!");
16 | }
17 | await res.user.updateProfile({ displayName });
18 | error.value = null;
19 | isPenging.value = false;
20 | return res;
21 | } catch (err) {
22 | console.log(err.message);
23 | error.value = err.message;
24 | isPenging.value = false;
25 | }
26 | };
27 |
28 | const useSignup = () => {
29 | return { error, signup, isPenging };
30 | };
31 |
32 | export default useSignup;
33 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/composables/useStorage.js:
--------------------------------------------------------------------------------
1 | import { projectStorage } from "../firebase/config";
2 | import { ref } from "vue";
3 | import getUser from "./getUser";
4 |
5 | const { user } = getUser();
6 |
7 | const useStorage = () => {
8 | const error = ref(null);
9 | const url = ref(null);
10 | const filePath = ref(null);
11 |
12 | const uploadImage = async (file) => {
13 | filePath.value = `covers/${user.value.uid}/${file.name}`;
14 | const storageRef = projectStorage.ref(filePath.value);
15 |
16 | try {
17 | const res = await storageRef.put(file);
18 | url.value = await res.ref.getDownloadURL();
19 | } catch (err) {
20 | console.log(err.message);
21 | error.value = err.message;
22 | }
23 | };
24 |
25 | const deleteImage = async (path) => {
26 | const storageRef = projectStorage.ref(path);
27 | try {
28 | await storageRef.delete();
29 | } catch (err) {
30 | console.log(err.message);
31 | error.value = err.message;
32 | }
33 | };
34 | return { uploadImage, url, filePath, error, deleteImage };
35 | };
36 |
37 | export default useStorage;
38 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/firebase/config.js:
--------------------------------------------------------------------------------
1 | import firebase from "firebase/app";
2 | import "firebase/firestore";
3 | import "firebase/auth";
4 | import "firebase/storage";
5 |
6 | const firebaseConfig = {
7 | apiKey: "AIzaSyBEMMHapTxouV87di1nYagTRBEwFsQEKUQ",
8 | authDomain: "playlist-vue-9482a.firebaseapp.com",
9 | projectId: "playlist-vue-9482a",
10 | storageBucket: "playlist-vue-9482a.appspot.com",
11 | messagingSenderId: "176878282816",
12 | appId: "1:176878282816:web:7da6c4588bbed534dc17a5",
13 | };
14 |
15 | firebase.initializeApp(firebaseConfig);
16 |
17 | const projectFirestore = firebase.firestore();
18 | const projectAuth = firebase.auth();
19 | const projectStorage = firebase.storage();
20 |
21 | const timestamp = firebase.firestore.FieldValue.serverTimestamp;
22 |
23 | export { projectFirestore, projectAuth, projectStorage, timestamp };
24 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from "vue";
2 | import App from "./App.vue";
3 | import router from "./router";
4 | import "./assets/main.css";
5 | import { projectAuth } from "./firebase/config";
6 |
7 | let app;
8 |
9 | projectAuth.onAuthStateChanged(() => {
10 | if (!app) {
11 | app = createApp(App).use(router).mount("#app");
12 | }
13 | });
14 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/router/index.js:
--------------------------------------------------------------------------------
1 | import { createRouter, createWebHistory } from "vue-router";
2 | import Home from "../views/Home.vue";
3 |
4 | import { projectAuth } from "../firebase/config";
5 |
6 | const requireAuth = (to, from, next) => {
7 | let user = projectAuth.currentUser;
8 | if (!user) {
9 | next({ name: "login" });
10 | } else {
11 | next();
12 | }
13 | };
14 |
15 | const routes = [
16 | {
17 | path: "/",
18 | name: "home",
19 | component: Home,
20 | beforeEnter: requireAuth,
21 | },
22 | {
23 | path: "/login",
24 | name: "login",
25 | component: () => import("../views/auth/Login.vue"),
26 | },
27 | {
28 | path: "/signup",
29 | name: "signup",
30 | component: () => import("../views/auth/Signup.vue"),
31 | },
32 | {
33 | path: "/playlist/create",
34 | name: "createplaylist",
35 | component: () => import("../views/playlists/CreatePlayList.vue"),
36 | beforeEnter: requireAuth,
37 | },
38 | {
39 | path: "/playlists/:id",
40 | name: "playlistdetails",
41 | component: () => import("../views/playlists/PlaylistDetails.vue"),
42 | beforeEnter: requireAuth,
43 | props: true,
44 | },
45 | ];
46 |
47 | const router = createRouter({
48 | history: createWebHistory(process.env.BASE_URL),
49 | routes,
50 | });
51 |
52 | export default router;
53 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/views/Home.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Could not fetch the data.
4 |
5 |
6 |
7 |
8 |
9 |
10 |
23 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/views/auth/Login.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | Login
4 |
5 |
6 | {{ error }}
7 | Login
8 | Loading
9 |
10 |
11 |
12 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/views/auth/Signup.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | Signup
4 |
5 |
6 |
7 | {{ error }}
8 | Signup
9 | Loading
10 |
11 |
12 |
13 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/views/playlists/CreatePlayList.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | Create Playlist
4 |
5 |
10 | Upload playlist cover image
11 |
12 | {{ fileError }}
13 | Create
14 | Saving...
15 |
16 |
17 |
18 |
81 |
82 |
96 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/src/views/playlists/PlaylistDetails.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{ error }}
4 |
5 |
6 |
7 |
8 |
9 |
{{ playlist.title }}
10 |
Created by {{ playlist.userName }}
11 |
{{ playlist.description }}
12 |
Delete
13 |
14 |
15 |
No songs have been added yet.
16 |
17 |
18 |
{{ song.title }}
19 |
{{ song.artist }}
20 |
21 |
Delete
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
68 |
69 |
117 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/storage.rules:
--------------------------------------------------------------------------------
1 | rules_version = '2';
2 | service firebase.storage {
3 | match /b/{bucket}/o {
4 | match /covers/{userId}/{document=**} {
5 | allow read, create: if request.auth != null;
6 | allow delete: if request.auth.uid == userId;
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/17-Playlist-Uygulama-6/playlist-app/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/README.md:
--------------------------------------------------------------------------------
1 | # vuex-app
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Customize configuration
19 | See [Configuration Reference](https://cli.vuejs.org/config/).
20 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "esnext",
5 | "baseUrl": "./",
6 | "moduleResolution": "node",
7 | "paths": {
8 | "@/*": [
9 | "src/*"
10 | ]
11 | },
12 | "lib": [
13 | "esnext",
14 | "dom",
15 | "dom.iterable",
16 | "scripthost"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vuex-app",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "core-js": "^3.8.3",
11 | "vue": "^3.2.13",
12 | "vue-router": "^4.0.3",
13 | "vuex": "^4.0.0"
14 | },
15 | "devDependencies": {
16 | "@vue/cli-plugin-babel": "~5.0.0",
17 | "@vue/cli-plugin-router": "~5.0.0",
18 | "@vue/cli-plugin-vuex": "~5.0.0",
19 | "@vue/cli-service": "~5.0.0"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/18-Vuex/vuex-app/public/favicon.ico
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
12 | We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
27 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/waroi/BTK-VueJS-Egitimi/fe52b7d428d853762d18d92ce5a0849a31d4623c/18-Vuex/vuex-app/src/assets/logo.png
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/src/components/AddTodo.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Ekle
5 |
6 |
7 |
8 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/src/components/List.vue:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/src/components/todoCount.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Yapılanlar: {{ todoDoneCount }}
4 |
Yapılmayanlar: {{ todoNotDoneCount }}
5 |
6 |
7 |
8 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from 'vue'
2 | import App from './App.vue'
3 | import router from './router'
4 | import store from './store'
5 |
6 | createApp(App).use(store).use(router).mount('#app')
7 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/src/router/index.js:
--------------------------------------------------------------------------------
1 | import { createRouter, createWebHistory } from "vue-router";
2 | import Home from "../views/Home.vue";
3 |
4 | const routes = [
5 | {
6 | path: "/",
7 | name: "home",
8 | component: Home,
9 | },
10 | ];
11 |
12 | const router = createRouter({
13 | history: createWebHistory(process.env.BASE_URL),
14 | routes,
15 | });
16 |
17 | export default router;
18 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/src/store/index.js:
--------------------------------------------------------------------------------
1 | import { createStore } from "vuex";
2 |
3 | export default createStore({
4 | state: {
5 | todos: [
6 | { id: 1, todo: "ders çalış", done: false },
7 | { id: 2, todo: "film izle", done: true },
8 | { id: 3, todo: "dizi izle", done: false },
9 | { id: 4, todo: "koşu yap", done: true },
10 | ],
11 | },
12 | getters: {
13 | todoTotalCount(state) {
14 | return state.todos.length;
15 | },
16 | todoDoneCount(state) {
17 | return state.todos.filter((x) => x.done == true).length;
18 | },
19 | todoNotDoneCount(state) {
20 | return state.todos.filter((x) => x.done == false).length;
21 | },
22 | },
23 | mutations: {
24 | addTodo(state, { newTodo, done }) {
25 | let todo = {
26 | id: Math.floor(Math.random() * 1000000),
27 | todo: newTodo,
28 | done: done,
29 | };
30 | state.todos.push(todo);
31 | },
32 | },
33 | actions: {
34 | addTodoAction(contex, todoObject) {
35 | contex.commit("addTodo", todoObject);
36 | },
37 | },
38 | modules: {},
39 | });
40 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/src/views/Home.vue:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
21 |
--------------------------------------------------------------------------------
/18-Vuex/vuex-app/vue.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require('@vue/cli-service')
2 | module.exports = defineConfig({
3 | transpileDependencies: true
4 | })
5 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # BTK-VueJS-Egitimi
2 |
3 | Eğitim sırasında yazdığımız bütün kodları burada bulabilirsiniz. Önce kendi sınırlarınızı zorlamayı mutlaka deneyin. Sonra buradaki yazılmış kodlarla kendinizi karşılaştırın, bunun yararını çok kısa sürede göreceksiniz.
4 |
--------------------------------------------------------------------------------