├── .npmrc ├── src ├── lib │ ├── eth-sdk │ │ ├── esm │ │ │ ├── types │ │ │ │ ├── common.js │ │ │ │ ├── polygon │ │ │ │ │ ├── index.js │ │ │ │ │ ├── LensHub.js │ │ │ │ │ └── index.d.ts │ │ │ │ ├── factories │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── polygon │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── LensHub__factory.d.ts │ │ │ │ │ │ └── LensHub__factory.js │ │ │ │ │ └── index.js │ │ │ │ ├── index.js │ │ │ │ ├── index.d.ts │ │ │ │ └── common.d.ts │ │ │ ├── index.d.ts │ │ │ └── index.js │ │ ├── index.d.ts │ │ ├── index.mjs │ │ ├── types.d.ts │ │ ├── index.cjs │ │ ├── cjs │ │ │ ├── types │ │ │ │ ├── factories │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── polygon │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── LensHub__factory.d.ts │ │ │ │ │ └── index.js │ │ │ │ ├── polygon │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── index.js │ │ │ │ │ └── LensHub.js │ │ │ │ ├── common.js │ │ │ │ ├── index.d.ts │ │ │ │ ├── common.d.ts │ │ │ │ └── index.js │ │ │ ├── index.d.ts │ │ │ └── index.js │ │ ├── package.json │ │ ├── config.ts │ │ ├── README.md │ │ └── abis │ │ │ └── polygon │ │ │ └── lensHub.json │ ├── constants.ts │ ├── graphql │ │ ├── fragments │ │ │ ├── erc20Fields.gql │ │ │ ├── mediaFields.gql │ │ │ ├── walletFields.gql │ │ │ ├── publicationStatsFIeld.gql │ │ │ ├── mirrorFields.gql │ │ │ ├── commentMirrorOfFields.gql │ │ │ ├── mediaOutputFields.gql │ │ │ ├── commentFields.gql │ │ │ ├── mirrorBaseFIelds.gql │ │ │ ├── commentBaseFields.gql │ │ │ ├── postFields.gql │ │ │ ├── collectModuleFields.gql │ │ │ └── profileFIelds.gql │ │ ├── queries │ │ │ ├── recommendedProfiles.gql │ │ │ ├── challengeRequest.gql │ │ │ ├── defaultProfile.gql │ │ │ ├── profile.gql │ │ │ └── timelime.gql │ │ ├── mutations │ │ │ ├── refreshToken.gql │ │ │ └── authenticate.gql │ │ └── kitQLClient.ts │ ├── stores │ │ ├── userProfile.ts │ │ └── wallet.ts │ ├── components │ │ ├── NotImplemented.svelte │ │ ├── Footer.svelte │ │ ├── Navigation.svelte │ │ ├── Feed.svelte │ │ ├── Post.svelte │ │ ├── RecommendedProfiles.svelte │ │ └── SignIn.svelte │ └── utils.ts ├── routes │ ├── posts │ │ └── [id].svelte │ ├── __layout-profile.svelte │ ├── __layout.svelte │ ├── index.svelte │ └── u │ │ └── [handle]@profile.svelte ├── app.d.ts ├── app.css └── app.html ├── static ├── favicon.png └── img │ ├── lens.png │ └── default_avatar.jpg ├── .gitignore ├── .prettierrc ├── .eslintignore ├── .prettierignore ├── tailwind.config.cjs ├── tsconfig.json ├── postcss.config.cjs ├── codegen.yaml ├── .eslintrc.cjs ├── svelte.config.js ├── README.md └── package.json /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/esm/types/common.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './esm' 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/index.mjs: -------------------------------------------------------------------------------- 1 | export * from './esm' 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/esm/types/polygon/index.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/types.d.ts: -------------------------------------------------------------------------------- 1 | export * from './esm/types' 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/esm/types/polygon/LensHub.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/index.cjs: -------------------------------------------------------------------------------- 1 | module.exports = require('./cjs') 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/cjs/types/factories/index.d.ts: -------------------------------------------------------------------------------- 1 | export * as polygon from "./polygon"; 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/esm/types/factories/index.d.ts: -------------------------------------------------------------------------------- 1 | export * as polygon from "./polygon"; 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/cjs/types/polygon/index.d.ts: -------------------------------------------------------------------------------- 1 | export type { LensHub } from "./LensHub"; 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/esm/types/polygon/index.d.ts: -------------------------------------------------------------------------------- 1 | export type { LensHub } from "./LensHub"; 2 | -------------------------------------------------------------------------------- /static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/what-the-func/lens-starter/HEAD/static/favicon.png -------------------------------------------------------------------------------- /static/img/lens.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/what-the-func/lens-starter/HEAD/static/img/lens.png -------------------------------------------------------------------------------- /src/lib/constants.ts: -------------------------------------------------------------------------------- 1 | export const APIURL = 'https://api.lens.dev' 2 | export const STORAGE_KEY = 'LH_STORAGE_KEY' -------------------------------------------------------------------------------- /src/lib/eth-sdk/cjs/types/factories/polygon/index.d.ts: -------------------------------------------------------------------------------- 1 | export { LensHub__factory } from "./LensHub__factory"; 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/esm/types/factories/polygon/index.d.ts: -------------------------------------------------------------------------------- 1 | export { LensHub__factory } from "./LensHub__factory"; 2 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/cjs/types/common.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /static/img/default_avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/what-the-func/lens-starter/HEAD/static/img/default_avatar.jpg -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /build 4 | /.svelte-kit 5 | /package 6 | .env 7 | .env.* 8 | !.env.example 9 | _kitql -------------------------------------------------------------------------------- /src/lib/eth-sdk/cjs/types/polygon/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/cjs/types/polygon/LensHub.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /src/lib/graphql/fragments/erc20Fields.gql: -------------------------------------------------------------------------------- 1 | fragment Erc20Fields on Erc20 { 2 | name 3 | symbol 4 | decimals 5 | address 6 | } -------------------------------------------------------------------------------- /src/lib/graphql/fragments/mediaFields.gql: -------------------------------------------------------------------------------- 1 | fragment MediaFields on Media { 2 | url 3 | width 4 | height 5 | mimeType 6 | } 7 | -------------------------------------------------------------------------------- /src/lib/graphql/queries/recommendedProfiles.gql: -------------------------------------------------------------------------------- 1 | query recommendedProfiles { 2 | recommendedProfiles { 3 | ...ProfileFields 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "useTabs": false, 3 | "singleQuote": true, 4 | "trailingComma": "none", 5 | "printWidth": 100, 6 | "semi": false 7 | } 8 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/esm/types/index.js: -------------------------------------------------------------------------------- 1 | export * as factories from "./factories"; 2 | export { LensHub__factory } from "./factories/polygon/LensHub__factory"; 3 | -------------------------------------------------------------------------------- /src/lib/graphql/fragments/walletFields.gql: -------------------------------------------------------------------------------- 1 | fragment WalletFields on Wallet { 2 | address 3 | defaultProfile { 4 | ...ProfileFields 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": ".dethcrypto/eth-sdk-client", 3 | "main": "index.cjs", 4 | "module": "index.mjs", 5 | "types": "index.d.ts" 6 | } 7 | -------------------------------------------------------------------------------- /src/lib/graphql/queries/challengeRequest.gql: -------------------------------------------------------------------------------- 1 | query challengeRequest ($request: ChallengeRequest!) { 2 | challenge(request: $request) { 3 | text 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/lib/eth-sdk/esm/types/factories/index.js: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export * as polygon from "./polygon"; 5 | -------------------------------------------------------------------------------- /src/lib/graphql/mutations/refreshToken.gql: -------------------------------------------------------------------------------- 1 | mutation refreshToken($request: RefreshRequest!) { 2 | refresh(request: $request) { 3 | accessToken 4 | refreshToken 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/lib/graphql/queries/defaultProfile.gql: -------------------------------------------------------------------------------- 1 | query defaultProfile($request: DefaultProfileRequest!) { 2 | defaultProfile(request: $request) { 3 | ...ProfileFields 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/lib/graphql/queries/profile.gql: -------------------------------------------------------------------------------- 1 | query profile ($request: ProfileQueryRequest!) { 2 | profiles(request: $request) { 3 | items { 4 | ... ProfileFields 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/lib/graphql/fragments/publicationStatsFIeld.gql: -------------------------------------------------------------------------------- 1 | fragment PublicationStatsFields on PublicationStats { 2 | totalAmountOfMirrors 3 | totalAmountOfCollects 4 | totalAmountOfComments 5 | } 6 | -------------------------------------------------------------------------------- /src/lib/graphql/mutations/authenticate.gql: -------------------------------------------------------------------------------- 1 | mutation authenticate($request: SignedAuthChallenge!) { 2 | authenticate(request: $request) { 3 | accessToken 4 | refreshToken 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/routes/posts/[id].svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |
23 | {pub.__typename}ed by 24 | 25 | {pub.profile.handle} 26 | 27 |
28 |30 | {@html linkifyHtml(pub.metadata.content, { className: 'text-magic font-semibold' })} 31 |
32 | 33 ||
36 |
37 |
67 |
38 |
43 |
49 |
66 | |
68 |
69 | 70 | 86 | | 87 |
|---|---|
|
94 |
95 |
103 |
96 |
97 |
98 |
99 |
100 |
101 |
102 | |
104 | 105 | 106 | | 107 |