Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Allow configuration of "Ask a question" and "reply to question" #248

Open
pjhul opened this issue Nov 10, 2022 · 1 comment
Open

Allow configuration of "Ask a question" and "reply to question" #248

pjhul opened this issue Nov 10, 2022 · 1 comment
Labels
enhancement New feature or request squeak-react

Comments

@pjhul
Copy link
Contributor

pjhul commented Nov 10, 2022

Original issue: https://github.com/PostHog/squeak-react/issues/55

I wanted to use squeak to add a discussion to a page on my site... But it isn't Q&A

Screenshot 2022-07-17 at 17 50 40

Would be awesome to init squeak.js on the page with what I'd like it to say. In this case, something like "what are you a signpost for?" and "reply to this"

@pjhul pjhul added enhancement New feature or request squeak-react labels Nov 10, 2022
@pjhul
Copy link
Contributor Author

pjhul commented Nov 10, 2022

So you'd have squeak.js in the page with something like

<script>
	(function() {
		window.squeak = {
			supabase: {
				apiKey: "blah"
				url: "https://somewhere.supabase.co",
			},
			apiHost: "https://squeak.cloud",
			organizationId: "a-uuid",
                         // new config here
			askLabel: "I'm a signpost for...",
			replyLabel: "comment on this"
		};
		var d = document,
			s = d.createElement("script");
		s.src = "//somewhere.cloudfront.net/squeak.js";
		(d.head || d.body).appendChild(s);
	})();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request squeak-react
Projects
None yet
Development

No branches or pull requests

1 participant