initial commits

master
Charles Iliya Krempeaux 2024-02-15 09:05:17 -08:00
parent 1701109e9f
commit 689f44adf7
1 changed files with 28 additions and 0 deletions

28
metaproperties.go 100644
View File

@ -0,0 +1,28 @@
package frameproto
// These constants are 'names' in name-value pairs used with HTML <meta /> elements by the frame-protocol.
//
// For example:
//
// <meta property="fc:frame" content="vNext" />
// <meta property="fc:frame:image" content="https://example.com/path/to/image.png" />
// <meta property="og:image" content="https://example.com/path/to/image.png" />
const (
MetaPropertyFrame = "fc:frame"
MetaPropertyFrameButton1 = "fc:frame:button:1"
MetaPropertyFrameButton1Action = "fc:frame:button:1:action"
MetaPropertyFrameButton1Target = "fc:frame:button:1:target"
MetaPropertyFrameButton2 = "fc:frame:button:2"
MetaPropertyFrameButton2Action = "fc:frame:button:2:action"
MetaPropertyFrameButton2Target = "fc:frame:button:2:target"
MetaPropertyFrameButton3 = "fc:frame:button:3"
MetaPropertyFrameButton3Action = "fc:frame:button:3:action"
MetaPropertyFrameButton3Target = "fc:frame:button:3:target"
MetaPropertyFrameButton4 = "fc:frame:button:4"
MetaPropertyFrameButton4Action = "fc:frame:button:4:action"
MetaPropertyFrameButton4Target = "fc:frame:button:4:target"
MetaPropertyFrameImage = "fc:frame:image"
MetaPropertyFrameImageAspectRatio = "fc:frame:image:aspect_ratio"
MetaPropertyFrameInputText = "fc:frame:input:text"
MetaPropertyFramePostURL = "fc:frame:post_url"
)